Classes
BLSKeyPair
A BLS keypair It is used by validators to vote during Tendermint rounds. This is just a wrapper around our internal BLS structs
Constructors
new BLSKeyPair()
Parameter | Type |
---|---|
First | BLSPublicKey |
Returns |
---|
BLSKeyPair |
Properties
publicKey
Gets the keypair's public key.
secretKey
Gets the keypair's secret key.
Methods
free()
serialize()
Serializes to a byte array.
toHex()
Formats the keypair into a hex string.
derive()
Derives a keypair from an existing private key.
Parameter | Type |
---|---|
First | BLSSecretKey |
Returns |
---|
BLSKeyPair |
deserialize()
Deserializes a keypair from a byte array.
Parameter | Type |
---|---|
First | Uint8Array |
Returns |
---|
BLSKeyPair |
generate()
Generates a new keypair from secure randomness.
Returns |
---|
BLSKeyPair |