Skip to main content

ValidatorHash

export interface ValidatorHash<C=unknown> {
  bytes: number[]
  context: C
  isEqual(other: ValidatorHash): boolean
  kind: "ValidatorHash"
  toCbor(): number[]
  toHex(): string
  toString(): string
  toUplcData(): ByteArrayData
}
Represents a blake2b-224 (28 bytes) hash of a spending validator script (first encoded as a CBOR byte-array and prepended by a script version byte).

Properties

bytes

bytes: number[]

context

context: C

isEqual

isEqual(other: ValidatorHash): boolean

kind

kind: "ValidatorHash"

toCbor

toCbor(): number[]

toHex

toHex(): string

toString

toString(): string
Alias for toHex()

toUplcData

toUplcData(): ByteArrayData