@midnight/zswap v0.3.11 • Readme | API
@midnight/zswap v0.3.11 / 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
Constructors
new EncryptionSecretKey()
new EncryptionSecretKey(): EncryptionSecretKey
Returns
Methods
test()
test(offer): boolean
Parameters
• offer: Offer
Returns
boolean
yesIKnowTheSecurityImplicationsOfThis_serialize()
yesIKnowTheSecurityImplicationsOfThis_serialize(): Uint8Array
Returns
Uint8Array
deserialize()
static deserialize(raw): EncryptionSecretKey
Parameters
• raw: Uint8Array