Class: SignatureProof
A signature proof represents a signature together with its public key and the public key's merkle path. It is used as the proof for transactions.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new SignatureProof(): SignatureProof
Returns
Properties
publicKey
• Readonly
publicKey: PublicKey
The embedded public key.
Defined in
web.d.ts:1568
signature
• Readonly
signature: Signature
The embedded signature.
Defined in
web.d.ts:1572
Methods
free
▸ free(): void
Returns
void
Defined in
web.d.ts:1540
isSignedBy
▸ isSignedBy(sender
): boolean
Checks if the signature proof is signed by the provided address.
Parameters
Name | Type |
---|---|
sender | Address |
Returns
boolean
Defined in
web.d.ts:1559
serialize
▸ serialize(): Uint8Array
Serializes the proof to a byte array, e.g. for assigning it to a transaction.proof
field.
Returns
Uint8Array
Defined in
web.d.ts:1564
verify
▸ verify(data
): boolean
Verifies the signature proof against the provided data.
Parameters
Name | Type |
---|---|
data | Uint8Array |
Returns
boolean
Defined in
web.d.ts:1553
singleSig
▸ singleSig(public_key
, signature
): SignatureProof
Creates a signature proof for a single-sig signature.
Parameters
Name | Type |
---|---|
public_key | PublicKey |
signature | Signature |
Returns
Defined in
web.d.ts:1547