Classes
BLSPublicKey
The public part of the BLS keypair. This is specified in the staking contract to verify votes from Validators.
Constructors
new BLSPublicKey()
Creates a new public key from a byte array.
Parameter | Type |
---|---|
First | Uint8Array |
Returns |
---|
BLSPublicKey |
Methods
free()
serialize()
Serializes the public key to a byte array.
toHex()
Formats the public key into a hex string.
derive()
Derives a public key from an existing private key.
Parameter | Type |
---|---|
First | BLSSecretKey |
Returns |
---|
BLSPublicKey |
deserialize()
Deserializes a public key from a byte array.
Parameter | Type |
---|---|
First | Uint8Array |
Returns |
---|
BLSPublicKey |
fromHex()
Parses a public key from its hex representation.
Parameter | Type |
---|---|
First | string |
Returns |
---|
BLSPublicKey |