Helios API/ API Reference/ Classes/

Signature

Represents a Ed25519 signature.

Also contains a reference to the PubKey that did the signing.

Hierarchy

Index

Constructors

constructor

new Signature(pubKey, signature)

Parameters

NameType
pubKeynumber[] | PubKey
signaturenumber[]

Overrides

CborData.constructor

Accessors

bytes

get bytes(): number[]

Returns

number[]

pubKey

get pubKey(): PubKey

Returns

PubKey

pubKeyHash

get pubKeyHash(): PubKeyHash

Returns

PubKeyHash

Methods

dump

dump(): any

Returns

any

isDummy

isDummy(): boolean

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

CborData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

CborData.toCborHex

verify

verify(msg): void

Throws error if incorrect

Parameters

NameType
msgnumber[]

Returns

void

dummy

Static dummy(): Signature

Returns

Signature

fromCbor

Static fromCbor(bytes): Signature

Parameters

NameType
bytesnumber[]

Returns

Signature