Constructors
constructor
- new TransportSecretKey(seed: Uint8Array): TransportSecretKey
Methods
decrypt
- decrypt(
encrypted_key_bytes: Uint8Array,
derived_public_key_bytes: Uint8Array,
derivation_id: Uint8Array,
): Uint8Array Parameters
- encrypted_key_bytes: Uint8Array
- derived_public_key_bytes: Uint8Array
- derivation_id: Uint8Array
Returns Uint8Array
decrypt_and_hash
- decrypt_and_hash(
encrypted_key_bytes: Uint8Array,
derived_public_key_bytes: Uint8Array,
derivation_id: Uint8Array,
symmetric_key_bytes: number,
symmetric_key_associated_data: Uint8Array,
): Uint8Array Parameters
- encrypted_key_bytes: Uint8Array
- derived_public_key_bytes: Uint8Array
- derivation_id: Uint8Array
- symmetric_key_bytes: number
- symmetric_key_associated_data: Uint8Array
Returns Uint8Array
free
- free(): void
Returns void
public_key
- public_key(): Uint8Array
Returns Uint8Array
Secret key of the transport key pair