module Tapyrus::SLIP39
Constants
- BASE_ITERATION_COUNT
The minimum number of iterations to use in PBKDF2.
- CHECKSUM_LENGTH_WORDS
The length of the RS1024 checksum in words.
- CUSTOMIZATION_STRING
The customization string used in the RS1024 checksum and in the PBKDF2 salt.
- DIGEST_INDEX
The index of the share containing the digest of the shared secret.
- DIGEST_LENGTH_BYTES
The length of the digest of the shared secret in bytes.
- EXP_TABLE
prettier-ignore
- ID_EXP_LENGTH_WORDS
The length of the random identifier and iteration exponent in words.
- ID_LENGTH_BITS
The length of the random identifier in bits.
- ITERATION_EXP_LENGTH_BITS
The length of the iteration exponent in bits.
- LOG_TABLE
prettier-ignore
- MAX_SHARE_COUNT
The maximum number of shares that can be created.
- METADATA_LENGTH_WORDS
The length of the mnemonic in words without the share value.
- MIN_MNEMONIC_LENGTH_WORDS
The minimum allowed length of the mnemonic in words.
- MIN_STRENGTH_BITS
The minimum allowed entropy of the master secret.
- RADIX
The number of words in the wordlist.
- RADIX_BITS
The length of the radix in bits.
- ROUND_COUNT
The number of rounds to use in the Feistel cipher.
- SECRET_INDEX
The index of the share containing the shared secret.
- WORDS
Public Instance Methods
# File lib/tapyrus/slip39.rb, line 7 def bits_to_bytes(n) (n + 7) / 8 end
# File lib/tapyrus/slip39.rb, line 11 def bits_to_words(n) (n + RADIX_BITS - 1) / RADIX_BITS end