Constructs a new HashId
instance.
HashId
is generated.Optional
obj: anyReturns the underlying C++ object, transferring ownership from this instance to the caller.
The underlying object of the instance.
Serializes the instance to a hexadecimal string.
A hexadecimal string representation of the instance.
Returns the size of the underlying C++ object.
The size of the underlying C++ object in bytes.
Returns a string representation of the instance.
A string representation of the instance.
Returnsthe underlying C++ object.
The underlying C++ object.
Static
deserializeStatic
fromConstucts a new instance using the provided object.
The object to use for the new instance.
A new instance of the class.
Static
fromConstructs a new instance using the provided object and size.
The object to use for the new instance.
The size of the object.
A new instance of the class.
Static
generateStatic
randomGenerates a random HashId
.
A new HashId
instance with two random PublicKey
s and a random ViewKey
.
Represents a hash ID consisting of a blinding public key, a spending public key, and a view key. Also known as
CKeyId
which is an alias foruint160
on the C++ side.Examples: