Initializes a new AccountHash instance.
The underlying Hash object containing the raw bytes of the account hash.
Optional. The prefix of the original hash string (default is an empty string).
Private originStores the prefix of the original hash string if it had one.
Possible prefixes are "00" or "account-hash-".
Static ByteThe fixed length of the hash in bytes.
Static StringThe fixed length of the hash string representation in hexadecimal characters.
Static createCreates an array of Hash instances from a byte array.
An array of Hash instances created from the byte array.
Error if the byte array length is not a multiple of the hash length.
The byte array containing multiple hash values.
Static fromStatic fromCreates a Hash instance from a byte array.
A result object containing the new Hash instance and the remaining bytes.
Error if the byte array length does not match the expected hash length.
The byte array representing the hash.
Static fromStatic fromJSONDeserializes an AccountHash instance from a JSON string representation.
A new AccountHash instance created from the JSON string.
Throws an error if the input is not a valid JSON string.
The JSON string representation of the AccountHash.
Static fromParses a string representation of an account hash and creates an AccountHash instance.
Recognizes and preserves any prefix, either "00" or "account-hash-".
A new AccountHash instance containing the parsed hash and prefix.
The string representation of the account hash.
Generated using TypeDoc
Represents an account hash in the Casper network. This class extends the
Hashclass, adding specific methods and properties for managing account hashes, which include special prefixes.