Skip to content

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

SignatureProof

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

NameType
senderAddress

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

NameType
dataUint8Array

Returns

boolean

Defined in

web.d.ts:1553


singleSig

singleSig(public_key, signature): SignatureProof

Creates a signature proof for a single-sig signature.

Parameters

NameType
public_keyPublicKey
signatureSignature

Returns

SignatureProof

Defined in

web.d.ts:1547