Skip to main content

ZswapSecretKeys

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / ZswapSecretKeys

Class: ZswapSecretKeys

Properties​

coinPublicKey​

readonly coinPublicKey: string;

coinSecretKey​

readonly coinSecretKey: CoinSecretKey;

encryptionPublicKey​

readonly encryptionPublicKey: string;

encryptionSecretKey​

readonly encryptionSecretKey: EncryptionSecretKey;

Methods​

clear()​

clear(): void;

Clears the secret keys, so that they are no longer usable nor held in memory Note: it does not clear copies of the keys - which is particularly relevant for proof preimages Note: this will cause all other operations to fail

Returns​

void


fromSeed()​

static fromSeed(seed): ZswapSecretKeys;

Derives secret keys from a 32-byte seed

Parameters​

seed​

Uint8Array

Returns​

ZswapSecretKeys


fromSeedRng()​

static fromSeedRng(seed): ZswapSecretKeys;

Derives secret keys from a 32-byte seed using deprecated implementation. Use only for compatibility purposes

Parameters​

seed​

Uint8Array

Returns​

ZswapSecretKeys