Entropy
Extends
Constructors
new Entropy()
Creates a new Entropy from a byte array.
Parameter | Type |
---|---|
First | Uint8Array |
Returns |
---|
Entropy |
Overrides
Properties
ENCRYPTION_CHECKSUM_SIZE
Inherited from
Secret.ENCRYPTION_CHECKSUM_SIZE
ENCRYPTION_CHECKSUM_SIZE_V3
Inherited from
Secret.ENCRYPTION_CHECKSUM_SIZE_V3
ENCRYPTION_KDF_ROUNDS
Inherited from
ENCRYPTION_SALT_SIZE
Inherited from
PURPOSE_ID
SIZE
Overrides
Accessors
encryptedSize
Get Signature
Returns the serialized size of this object when encrypted.
Inherited from
serializedSize
Get Signature
Returns the serialized size of this Entropy.
Methods
compare()
Compares this object to another object.
Returns a negative number if this
is smaller than o, a positive number if this
is larger than o, and zero if equal.
Parameter | Type |
---|---|
First | Serializable |
Inherited from
equals()
Checks for equality with another Entropy.
Parameter | Type |
---|---|
First | unknown |
Overrides
exportEncrypted()
Encrypts the Secret with a password.
Parameter | Type |
---|---|
First | Uint8Array |
<SerialBuffer> |
Inherited from
overwrite()
Overwrites this Entropy's bytes with a replacement in-memory
Parameter | Type |
---|---|
First | Entropy |
serialize()
Serializes the Entropy to a byte array.
Parameter | Type |
---|---|
First | SerialBuffer |
Returns |
---|
SerialBuffer |
Overrides
toBase64()
Formats the object into a base64 string.
Inherited from
toExtendedPrivateKey()
Derives an ExtendedPrivateKey from the Entropy.
Parameter | Type |
---|---|
First | string [] |
Returns |
---|
ExtendedPrivateKey |
toHex()
Formats the object into a hex string.
Inherited from
toMnemonic()
Converts the Entropy into a mnemonic.
Parameter | Type |
---|---|
First | string [] |
[] |
toString()
Formats the object into a hex string.
Inherited from
deserialize()
Deserializes an Entropy object from a byte array.
Parameter | Type |
---|---|
First | SerialBuffer |
Returns |
---|
Entropy |
exportEncrypted()
Parameter | Type |
---|---|
First | Uint8Array |
<SerialBuffer> |
Inherited from
fromEncrypted()
Decrypts a Secret from an encrypted byte array and its password.
Parameter | Type |
---|---|
First | Uint8Array |
<Entropy | PrivateKey > |
Inherited from
fromHex()
Deserializes an Entropy object from a hex string.
Parameter | Type |
---|---|
First | string |
Returns |
---|
Entropy |
generate()
Generates a new Entropy object from secure randomness.
Returns |
---|
Entropy |