Documentation
¶
Overview ¶
Package enr provides a minimal implementation of Ethereum Node Records (ENR).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
// Node public key (identity).
PubKey *ecdsa.PublicKey
// Signature of the record.
Signature []byte
}
Record represents an Ethereum Node Record.
func New ¶
func New(privkey *ecdsa.PrivateKey) (Record, error)
New returns a new enr record for the given private key.
Click to show internal directories.
Click to hide internal directories.