MnemonicStrength

Mnemonic strength levels defining entropy size and resulting word count.

Higher entropy provides stronger security but results in longer mnemonic phrases. The recommended strength for most use cases is BITS_256 (24 words).

The relationship between entropy and word count follows the BIP-39 formula:

  • Checksum bits = entropy bits / 32

  • Total bits = entropy bits + checksum bits

  • Word count = total bits / 11

See also

Entries

Link copied to clipboard

128 bits of entropy resulting in 12 words - adequate security

Link copied to clipboard

160 bits of entropy resulting in 15 words - good security

Link copied to clipboard

192 bits of entropy resulting in 18 words - strong security

Link copied to clipboard

224 bits of entropy resulting in 21 words - very strong security

Link copied to clipboard

256 bits of entropy resulting in 24 words - maximum security (recommended)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

The number of entropy bits used to generate the mnemonic

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

The resulting number of mnemonic words

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.