Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlsFromSecret ¶ added in v0.9.0
func GetBlsFromSecret(secretsManager secrets.SecretsManager) (*bls.PrivateKey, error)
GetBlsFromSecret retrieves BLS key by using provided secretsManager
func GetEcdsaFromSecret ¶ added in v0.9.0
func GetEcdsaFromSecret(secretsManager secrets.SecretsManager) (*wallet.Key, error)
GetEcdsaFromSecret retrieves validator(ECDSA) key by using provided secretsManager
Types ¶
type Account ¶
type Account struct { Ecdsa *wallet.Key Bls *bls.PrivateKey }
Account is an account for key signatures
func GenerateAccount ¶
GenerateAccount generates a new random account
func NewAccountFromSecret ¶
func NewAccountFromSecret(secretsManager secrets.SecretsManager) (*Account, error)
NewAccountFromSecret creates new account by using provided secretsManager
func (*Account) GetEcdsaPrivateKey ¶
func (a *Account) GetEcdsaPrivateKey() (*ecdsa.PrivateKey, error)
type ECDSASigner ¶
type ECDSASigner struct {
*Key
}
ECDSASigner implements ethgo.Key interface and it is used for signing using provided ECDSA key
func NewEcdsaSigner ¶
func NewEcdsaSigner(ecdsaKey *Key) *ECDSASigner
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) SignIBFTMessage ¶
SignIBFTMessage signs the IBFT consensus message with ECDSA key
func (*Key) SignWithDomain ¶ added in v0.8.1
SignWithDomain signs the provided digest with BLS key and provided domain
Click to show internal directories.
Click to hide internal directories.