Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
SignWithDomain signs the provided digest with BLS key and provided domain
Click to show internal directories.
Click to hide internal directories.