package mnemonic
A mnemonic represents a set of random entropy that can be used to derive a private key or other type of value. This implementation follows a combination of BIP-0039 and SLIP-0023. https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki https://github.com/satoshilabs/slips/blob/master/slip-0023.md
- Alphabetic
- By Inheritance
- mnemonic
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait DeriveFailure extends AnyRef
- type Entropy = Type
- case class EntropyFailure(failure: ValidationFailure) extends DeriveFailure with Product with Serializable
- trait FromEntropy[T] extends Serializable
- Annotations
- @implicitNotFound()
- sealed abstract class Language extends AnyRef
Represents a set of 2048 words that can be used to create a mnemonic.
- sealed abstract class MnemonicSize extends AnyRef
Mnemonic size is an enum with additional parameters for calculating checksum and entropy lengths.
- type Phrase = Type
- case class PhraseFailure(failure: ValidationFailure) extends DeriveFailure with Product with Serializable
- case class WordListFailure(failure: ValidationFailure) extends DeriveFailure with Product with Serializable
Value Members
- def derive[T](uuid: UUID)(implicit arg0: FromEntropy[T]): T
- def derive[T](entropy: Array[Byte], size: MnemonicSize)(implicit arg0: FromEntropy[T]): Either[DeriveFailure, T]
- def derive[T](mnemonic: String, size: MnemonicSize, language: Language)(implicit arg0: FromEntropy[T]): Either[DeriveFailure, T]
Derives a value
Tfrom the set of entropy underlying the given mnemonic.Derives a value
Tfrom the set of entropy underlying the given mnemonic.- T
the value to create from the generated entropy
- mnemonic
a mnemonic phrase containing a set of words separated by white-space
- size
the expected size of the mnemonic
- language
the language that the words in the phrase come from
- returns
either a
DeriveFailureif a failure occurred or a valueT
- object Entropy
- object FromEntropy extends Serializable
- object Language
- object MnemonicSize
- object Phrase