Skip to main content

CoinSecretKey

@midnight-ntwrk/onchain-runtime v2.0.1


@midnight-ntwrk/onchain-runtime / 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