This commit is contained in:
2024-09-26 21:54:04 +09:00
commit 6a8748b05e
13 changed files with 6285 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
-record(ak,
{name = "" :: string(),
id = <<>> :: clutch:id(),
balance = 0 :: non_neg_integer(),
history = [] :: [clutch:tx()],
checked = never :: never | clutch:ts()}).
-record(tx,
{id = none :: none | clutch:id(),
amount = 0 :: non_neg_integer(),
type = spend :: spend | atom()}).
-record(key,
{name = "" :: string(),
id = <<>> :: clutch:id(),
pair = #{} :: #{public := binary(), secret := binary()},
type = {eddsa, 256} :: {Cipher :: atom, Bitsize :: pos_integer()}}).