ValidatorHash
Opaque ByteArray
that represents the hash of a validator script.
The first part of a script address is formed by a ValidatorHash
.
Associated functions
new
ValidatorHash::new(bytes: ByteArray) -> ValidatorHash
from_data
ValidatorHash::from_data(data: Data) -> ValidatorHash
from_script_hash
Casts the generic ScriptHash
type into ValidatorHash
.
ValidatorHash::from_script_hash(hash: ScriptHash) -> ValidatorHash
Getters
bytes
validator_hash.bytes -> ByteArray
Operators
==
ValidatorHash == ValidatorHash -> Bool
!=
ValidatorHash != ValidatorHash -> Bool
>=
ValidatorHash >= ValidatorHash -> Bool
>
ValidatorHash > ValidatorHash -> Bool
<=
ValidatorHash <= ValidatorHash -> Bool
<
ValidatorHash < ValidatorHash -> Bool
Methods
serialize
validator_hash.serialize() -> ByteArray
show
Hexadecimal representation of the ValidatorHash
.
validator_hash.show() -> String