Skip to main content

SecretKeys

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / SecretKeys

Class: SecretKeys

Properties​

coinPublicKey​

readonly coinPublicKey: string;

coinSecretKey​

readonly coinSecretKey: CoinSecretKey;

encryptionPublicKey​

readonly encryptionPublicKey: string;

encryptionSecretKey​

readonly encryptionSecretKey: EncryptionSecretKey;

Methods​

fromSeed()​

static fromSeed(seed): SecretKeys

Derives secret keys from a 32-byte seed

Parameters​

seed​

Uint8Array<ArrayBufferLike>

Returns​

SecretKeys


fromSeedRng()​

static fromSeedRng(seed): SecretKeys

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

Parameters​

seed​

Uint8Array<ArrayBufferLike>

Returns​

SecretKeys