EncryptionSecretKey
@midnight/zswap v3.0.2 β’ Readme | API
@midnight/zswap v3.0.2 / 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()β
private new EncryptionSecretKey(): EncryptionSecretKey
Returnsβ
Methodsβ
test()β
test(offer): boolean
Parametersβ
β’ offer: Offer
Returnsβ
boolean
yesIKnowTheSecurityImplicationsOfThis_serialize()β
yesIKnowTheSecurityImplicationsOfThis_serialize(netid): Uint8Array
Parametersβ
β’ netid: NetworkId
Returnsβ
Uint8Array
deserialize()β
static deserialize(raw, netid): EncryptionSecretKey
Parametersβ
β’ raw: Uint8Array
β’ netid: NetworkId