Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EthereumKeyToOperatorKey ¶
func EthereumKeyToOperatorKey(ethereumKey *keystore.Key) (*PrivateKey, *PublicKey)
EthereumKeyToOperatorKey transforms a `go-ethereum`-based ECDSA key into the format supported by all packages used in keep-core.
func GenerateKeyPair ¶
func GenerateKeyPair() (*PrivateKey, *PublicKey, error)
GenerateKeyPair generates a new, random static key based on secp256k1 ethereum curve.
Types ¶
type PrivateKey ¶
type PrivateKey = ecdsa.PrivateKey
PrivateKey represents peer's static key associated with an on-chain stake. It is used to authenticate the peer and for attributability (signing).
Click to show internal directories.
Click to hide internal directories.