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.
`readonly` publicKey: [ES256PublicKey](ES256PublicKey) \| [PublicKey](PublicKey)
The embedded public key.
`readonly` signature: [ES256Signature](ES256Signature) \| [Signature](Signature)
The embedded signature.
`readonly` `static` ES256\_SINGLE\_SIG\_SIZE: `number`
`readonly` `static` SINGLE\_SIG\_SIZE: `number`
isSignedBy(`sender`): `boolean`
Checks if the signature proof is signed by the provided address.
serialize(): `Uint8Array`
Serializes the proof to a byte array, e.g. for assigning it to a transaction.proof
field.
toPlain(): [PlainTransactionProof](../type-aliases/PlainTransactionProof)
Creates a JSON-compatible plain object representing the signature proof.
verify(`data`): `boolean`
Verifies the signature proof against the provided data.
Parameter | Type |
---|
First | Uint8Array |
`static` deserialize(`bytes`): [SignatureProof](SignatureProof)
Deserializes a signature proof from a byte array.
Parameter | Type |
---|
First | Uint8Array |
`static` multiSig(`signer_key`, `public_keys`, `signature`): [SignatureProof](SignatureProof)
Creates a Ed25519/Schnorr signature proof for a multi-sig signature.
The public keys can also include ES256 keys.
`static` singleSig(`public_key`, `signature`): [SignatureProof](SignatureProof)
Creates a Ed25519/Schnorr signature proof for a single-sig signature.
`static` webauthnMultiSig(`signer_key`, `public_keys`, `signature`, `authenticator_data`, `client_data_json`): [SignatureProof](SignatureProof)
Creates a Webauthn signature proof for a multi-sig signature.
Parameter | Type |
---|
First | Uint8Array |
`static` webauthnSingleSig(`public_key`, `signature`, `authenticator_data`, `client_data_json`): [SignatureProof](SignatureProof)
Creates a Webauthn signature proof for a single-sig signature.
Parameter | Type |
---|
First | Uint8Array |