Skip to main content

@midnight/ledger v3.0.2Readme | API


@midnight/ledger 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

EncryptionSecretKey

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

Returns

EncryptionSecretKey