Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func NewLocal ¶
func NewLocal(privateKey *ecdsa.PrivateKey) *Local
NewLocal creates a new LocalSigner with the given private key.
type Remote ¶
type Remote struct{ *config.Credentials }
Signer holds credentials for the signer server.
type Signer ¶
type Signer interface {
// Sign signs each hash.
Sign(ctx context.Context, hashes []common.Hash) ([]hexutil.Bytes, error)
// Decrypt decrypts the cipher.
Decrypt(ctx context.Context, cipher []byte) (hexutil.Bytes, error)
// Identify retrieves identity of the signer.
Identify(ctx context.Context) (types.PublicKey, error)
}
Click to show internal directories.
Click to hide internal directories.