Constructs a new PublicKey
instance.
Optional
obj: anyReturns if the provied public key is equal to this public key.
The public key to compare with.
true
if the public keys are equal, false
otherwise.
Returns 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
fromStatic
fromStatic
generateStatic
random
Represents an element in the BLS12-381 G1 curve group that is used as a public key.
Examples: