Skip to main content

StakeValidatorHash

@harmoniclabs/cardano-ledger-ts • Docs


@harmoniclabs/cardano-ledger-ts / StakeValidatorHash

Class: StakeValidatorHash

Extends​

Constructors​

new StakeValidatorHash()​

new StakeValidatorHash(bs, className): StakeValidatorHash

Parameters​

• bs: CanBeHash28

• className: string = "Hash28"

Returns​

StakeValidatorHash

Inherited from​

Hash28.constructor

Defined in​

src/hashes/Hash28/Hash28.ts:26

Accessors​

_bytes​

get protected _bytes(): Uint8Array

Returns​

Uint8Array

Inherited from​

Hash28._bytes

Defined in​

src/hashes/Hash.ts:45


_str​

get protected _str(): string

Returns​

string

Inherited from​

Hash28._str

Defined in​

src/hashes/Hash.ts:67


asBytes​

get asBytes(): Uint8Array

Deprecated​

use toBuffer() instead

Returns​

Uint8Array

Inherited from​

Hash28.asBytes

Defined in​

src/hashes/Hash.ts:138


asString​

get asString(): string

Deprecated​

use toString() instead

Returns​

string

Inherited from​

Hash28.asString

Defined in​

src/hashes/Hash.ts:125

Methods​

clone()​

clone(): Hash28

Returns​

Hash28

Inherited from​

Hash28.clone

Defined in​

src/hashes/Hash28/Hash28.ts:41


toBuffer()​

toBuffer(): Uint8Array

Returns​

Uint8Array

Inherited from​

Hash28.toBuffer

Defined in​

src/hashes/Hash.ts:143


toBytes()​

toBytes(): Uint8Array

Returns​

Uint8Array

Deprecated​

use toBuffer() instead

Inherited from​

Hash28.toBytes

Defined in​

src/hashes/Hash.ts:151


toCbor()​

toCbor(): CborString

Returns​

CborString

Inherited from​

Hash28.toCbor

Defined in​

src/hashes/Hash.ts:161


toCborObj()​

toCborObj(): CborObj

Returns​

CborObj

Inherited from​

Hash28.toCborObj

Defined in​

src/hashes/Hash.ts:165


toData()​

toData(_version?): Data

Parameters​

• _version?: ToDataVersion

Returns​

Data

Inherited from​

Hash28.toData

Defined in​

src/hashes/Hash.ts:182


toString()​

toString(): string

Returns a string representation of an object.

Returns​

string

Inherited from​

Hash28.toString

Defined in​

src/hashes/Hash.ts:130


valueOf()​

valueOf(): string

Returns the primitive value of the specified object.

Returns​

string

Inherited from​

Hash28.valueOf

Defined in​

src/hashes/Hash28/Hash28.ts:36


fromAscii()​

static fromAscii(asciiStr): Hash

Parameters​

• asciiStr: string

Returns​

Hash

Inherited from​

Hash28.fromAscii

Defined in​

src/hashes/Hash.ts:187


fromCbor()​

static fromCbor(cStr): Hash28

Parameters​

• cStr: CanBeCborString

Returns​

Hash28

Inherited from​

Hash28.fromCbor

Defined in​

src/hashes/Hash28/Hash28.ts:46


fromCborObj()​

static fromCborObj(cObj): Hash28

Parameters​

• cObj: CborObj

Returns​

Hash28

Inherited from​

Hash28.fromCborObj

Defined in​

src/hashes/Hash28/Hash28.ts:50


isStrictInstance()​

static isStrictInstance(bs): bs is Hash

Parameters​

• bs: any

Returns​

bs is Hash

Inherited from​

Hash28.isStrictInstance

Defined in​

src/hashes/Hash.ts:40


isValidHexValue()​

static isValidHexValue(str): boolean

Parameters​

• str: string

Returns​

boolean

Inherited from​

Hash28.isValidHexValue

Defined in​

src/hashes/Hash.ts:197


toAscii()​

static toAscii(bStr): string

Parameters​

• bStr: Hash

Returns​

string

Inherited from​

Hash28.toAscii

Defined in​

src/hashes/Hash.ts:192