Skip to main content

EncryptionSecretKey

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / EncryptionSecretKey

Class: EncryptionSecretKey

Holds the encryption secret key of a user, which may be used to determine if a given offer contains outputs addressed to this user

Methods​

clear()​

clear(): void;

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

Returns​

void


test()​

test<P>(offer): boolean;

Type Parameters​

P​

P extends Proofish

Parameters​

offer​

ZswapOffer<P>

Returns​

boolean


yesIKnowTheSecurityImplicationsOfThis_serialize()​

yesIKnowTheSecurityImplicationsOfThis_serialize(): Uint8Array;

Returns​

Uint8Array


yesIKnowTheSecurityImplicationsOfThis_taggedSerialize()​

yesIKnowTheSecurityImplicationsOfThis_taggedSerialize(): Uint8Array;

Returns​

Uint8Array


deserialize()​

static deserialize(raw): EncryptionSecretKey;

Parameters​

raw​

Uint8Array

Returns​

EncryptionSecretKey


taggedDeserialize()​

static taggedDeserialize(raw): EncryptionSecretKey;

Parameters​

raw​

Uint8Array

Returns​

EncryptionSecretKey