コンテンツにスキップ

Signature⚓︎

Signature
Represents a signature.

Extends⚓︎

Constructors⚓︎

new Signature()⚓︎

new Signature(signature): Signature

Creates a signature from bytes or a hex string.

Parameters⚓︎

Parameter Type Description
signature string | Uint8Array<ArrayBufferLike> Input string or byte array.

Returns⚓︎

Signature

Overrides⚓︎

ByteArray.constructor

Properties⚓︎

Property Modifier Type Description Inherited from
bytes public Uint8Array<ArrayBuffer> Underlying bytes. ByteArray.bytes
NAME static string Byte array name (required because constructor.name is dropped during minification). ByteArray.NAME
SIZE static number Byte size of raw signature. -

Methods⚓︎

toJson()⚓︎

toJson(): string
Signature.toJson
Returns representation of this object that can be stored in JSON.

Returns⚓︎

string

JSON-safe representation of this object.

Inherited from⚓︎

ByteArray.toJson


toString()⚓︎

toString(): string
Signature.toString
Returns string representation of this object.

Returns⚓︎

string

String representation of this object

Inherited from⚓︎

ByteArray.toString


zero()⚓︎

static zero(): Signature
Signature.zero
Creates a zeroed signature.

Returns⚓︎

Signature

Zeroed signature.