Mavryk_client_base.Bip39
val pp : Stdlib.Format.formatter -> t -> unit
val show : t -> string
find_index word
is Some i
where is is the index of word
in the BIP39 word list, or None
if no such word is in the list.
val of_indices : int list -> t option
of_indices idxs
is Some mnemonic
if indices are all in range 0-2047
or None
otherwise.
val to_indices : t -> int list
to_indices t
is the list of indices corresponding to t
.
val of_words : string list -> t option
of_words words
is Some mnemonic
if words
is a list containing a valids number of valid english words.
val to_words : t -> string list
to_words mnemonic
is the list of words corresponding to mnemonic
.
val of_entropy : Mavryk_base.TzPervasives.Bytes.t -> t
of_entropy bytes
is the mnemonic derived from bytes
.
val to_seed :
?passphrase:Mavryk_base.TzPervasives.Bytes.t ->
t ->
Mavryk_base.TzPervasives.Bytes.t
to_seed ?passphrase mnemonic
is 64 bytes derived from a BIP39 mnemonic mnemonic
, using the optional passphrase passphrase
if provided.