Skip to main content

Signature

export interface Signature {
  bytes: number[]
  dump(): any
  isDummy(): boolean
  kind: "Signature"
  pubKey: PubKey
  pubKeyHash: PubKeyHash
  toCbor(): number[]
  verify(msg: number[]): void
}
Represents a Ed25519 signature. Also contains a reference to the PubKey that did the signing.

Properties

bytes

bytes: number[]

dump

dump(): any

isDummy

isDummy(): boolean

kind

kind: "Signature"

pubKey

pubKey: PubKey

pubKeyHash

pubKeyHash: PubKeyHash

toCbor

toCbor(): number[]

verify

verify(msg: number[]): void
Throws an error if incorrect