Skip to content

PubKeyHash

Extends: RefCounted

Description

Constants Descriptions

Status

enum Status{SUCCESS = 0, FROM_HEX_ERROR = 1}

Method Descriptions

_init

func _init(pub_key_hash: _PubKeyHash) -> PubKeyHash

WARNING: Do not use this constructor directly, instead use [method from_hex] for a safe way of building a [PubKeyHash].

to_hex

func to_hex() -> String

Return a [String] containing the hex-encoded hash.

to_bytes

func to_bytes() -> PackedByteArray

from_hex (static)

func from_hex(hash: String) -> FromHexResult

Tries to parse a [PubKeyhash] from the [param hash] passed as a hex-encoded [String].

Sub-classes

FromHexResult

Property Descriptions

value

var value: PubKeyHash
  • Getter: @value_getter

WARNING: This function may fail! First match on Result.tag or call Result.is_ok.

error

var error: String
  • Getter: @error_getter

WARNING: This function may fail! First match on Result.tag or call Result._is_err.