Skip to main content

CoinSecretKey

@midnight/ledger v7.0.0


@midnight/ledger / CoinSecretKey

Class: CoinSecretKey

Holds the coin secret key of a user, serialized as a hex-encoded 32-byte string

Methods

clear()

clear(): void;

Clears the coin secret key, so that it is no longer usable nor held in memory

Returns

void


yesIKnowTheSecurityImplicationsOfThis_serialize()

yesIKnowTheSecurityImplicationsOfThis_serialize(): Uint8Array;

Returns

Uint8Array


deserialize()

static deserialize(raw): CoinSecretKey;

Parameters

raw

Uint8Array

Returns

CoinSecretKey