Get a bit array from a Uint8Array.
Chunk an array to an array of arrays for every size
items.
Compress a public key. This function takes both compressed and uncompressed public keys, and always returns the compressed variant.
Safe function to merge multiple Uint8Arrays into a single Uint8array.
Decode a Base58 string to a Buffer. Throws an error if the checksum is invalid.
Decompress a public key. This function takes both compressed and uncompressed public keys, and always returns the decompressed variant.
Encode a Buffer as Base58 string with a checksum applied.
Get a mnemonic phrase from pre-generated entropy. Note that the entropy should be sufficiently random in order for the mnemonic phrase to be secure.
Get a hexadecimal string as Uint8Array.
Get a UTF-8 encoded string as buffer.
Generate a mnemonic phrase from size
bits.
string
Get the Ethereum address for a public key.
Get the checksum for entropy.
Get the fingerprint from a public key.
Get the index from a derivation path level.
Return a mnemonic word from a sequence of 11 bits.
Get the public key for a private key.
Hash a buffer with provided key using HMAC-SHA512.
Check if a mnemonic phrase is valid or not.
Returns the Keccak-256 hash of a string, as a hexadecimal string.
Get the initial entropy from a mnemonic phrase. Throws an error if the mnemonic phrase is invalid.
Derive a seed from a mnemonic phrase. This does not validate if a mnemonic phrase is valid.
Write a number to a Uint8Array with arbitrary length.
Derive a key from a buffer and salt. Defaults to 2048 iterations, 64 byte key length and SHA512 as digest.
Get a Uint8Array for a point.
Add a tweak to a private key. This function throws if the result is invalid.
Get a Uint8Array for a private key.
Add a point to a public key. This function throws if the result is invalid.
Get a Uint8Array for a public key.
Hash a buffer using RIPEMD160.
Hash a buffer using SHA256.
Attempt to parse a value as Uint8Array.
Get the checksummed version of an address.
Get a Uint8Array as hexadecimal string
Get a buffer as UTF-8 encoded string.
Generated using TypeDoc
Get a Uint8Array from a bit array.