Returns if the scalar is equal to the provided scalar.
The scalar to compare with.
true
if the scalars are equal, false
otherwise.
Returns the underlying C++ object, transferring ownership from this instance to the caller.
The underlying object of the instance.
Serialize the scalar to a hexadecimal string.
Returns the size of the underlying C++ object.
The size of the underlying C++ object in bytes.
Derives a ChildKey from a Scalar.
A new ChildKey instance derived from the provided Scalar.
Converts the scalar to an integer. *
The scalar as a number.
Returns a string representation of the instance.
A string representation of the instance.
Derives a TokenKey from a ChildKey.
A new TokenKey instance derived from the ChildKey.
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
random
Represents a child key. A child key is a Scalar and introduces no new functionality; it serves purely as a semantic alias. BlindingKey, TokenKey and TxKey are exclusively derived from a ChildKey.
Examples: