Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLSSigner ¶
BLSSigner holds the secret key used for signing operations.
func NewBLSSigner ¶
func NewBLSSigner( keyBz [constants.BLSSecretKeyLength]byte, ) (*BLSSigner, error)
NewBLSSigner creates a new Signer instance given a secret key.
func NewFromCometBFTNodeKey ¶
NewSignerFromFile creates a new Signer instance given a file path to a CometBFT node key.
TODO: In order to make RANDAO signing compatible with the BLS12-381 we need to extend the PrivVal interface to allow signing arbitrary things. @tac0turtle.
func (*BLSSigner) PublicKey ¶
func (b *BLSSigner) PublicKey() primitives.BLSPubkey
PublicKey returns the public key of the signer.
func (*BLSSigner) Sign ¶
func (b *BLSSigner) Sign(msg []byte) (primitives.BLSSignature, error)
Sign generates a signature for a given message using the signer's secret key. It returns the signature and any error encountered during the signing process.
Click to show internal directories.
Click to hide internal directories.