GajuDesk/include/gmc.hrl
2024-09-26 21:54:04 +09:00

20 lines
642 B
Erlang

-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()}}).