Skip to main content

EncryptionSecretKey

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / 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​

test()​

test(offer): boolean

Parameters​

offer​

Offer

Returns​

boolean


yesIKnowTheSecurityImplicationsOfThis_serialize()​

yesIKnowTheSecurityImplicationsOfThis_serialize(netid): Uint8Array<ArrayBufferLike>

Parameters​

netid​

NetworkId

Returns​

Uint8Array<ArrayBufferLike>


deserialize()​

static deserialize(raw, netid): EncryptionSecretKey

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

EncryptionSecretKey