Returns if the scalar is equal to the provided scalar.
The scalar to compare with.
true if the scalars are equal, false otherwise.
Serialize the scalar to a hexadecimal string.
Returns the size of the underlying C++ object.
The size of the underlying C++ object in bytes.
Converts the scalar to an integer.
The scalar as a bigint.
Returns a string representation of the instance.
A string representation of the instance.
Returnsthe underlying C++ object.
The underlying C++ object.
StaticdeserializeStaticfromConstucts a new instance using the provided object.
The object to use for the new instance.
A new instance of the class.
StaticfromConstructs 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.
Staticrandom
Represents a private spending key. A private spending key is a
Scalarand introduces no new functionality; it serves purely as a semantic alias.Examples: