IBLSPublicKeyCompendium
Author: Layr Labs, Inc.
Terms of Service: https://docs.eigenlayer.xyz/overview/terms-of-service
Functions
operatorToPubkeyHash
mapping from operator address to pubkey hash. Returns zero if the operator
has never registered, and otherwise returns the hash of the public key of the operator.
pubkeyHashToOperator
mapping from pubkey hash to operator address. Returns zero if no operator has ever registered the public key corresponding to pubkeyHash
, and otherwise returns the (unique) registered operator who owns the BLS public key that is the preimage of pubkeyHash
.
registerBLSPublicKey
Called by an operator to register themselves as the owner of a BLS public key and reveal their G1 and G2 public key.
Parameters
signedMessageHash
G1Point
is the registration message hash signed by the private key of the operator
pubkeyG1
G1Point
is the corresponding G1 public key of the operator
pubkeyG2
G2Point
is the corresponding G2 public key of the operator
getMessageHash
Returns the message hash that an operator must sign to register their BLS public key.
Parameters
operator
address
is the address of the operator registering their BLS public key
Events
NewPubkeyRegistration
Emitted when operator
registers with the public keys pubkeyG1
and pubkeyG2
.
Structs
G1Point
G2Point
Last updated