package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Compare compares two IPNS entries.
Create creates a new IPNS entry and signs it with the given private key.
EmbedPublicKey embeds the given public key in the given ipns entry.
ExtractPublicKey extracts a public key matching `pid` from the IPNS record, if possible.
GetEOL returns the EOL of this IPNS entry This function returns ErrUnrecognizedValidity if the validity type of the record isn't EOL.
RecordKey returns the libp2p record key for a given peer ID.
Validates validates the given IPNS entry against the given public key.

# Variables

ErrBadRecord should be returned when an ipns record cannot be unmarshalled.
ErrExpiredRecord should be returned when an ipns record is invalid due to being too old.
ErrInvalidPath should be returned when an ipns record path is not in a valid format.
ErrKeyFormat should be returned when an ipns record key is incorrectly formatted (not a peer ID).
ErrPublicKeyMismatch should be returned when the public key embedded in the record doesn't match the expected public key.
ErrPublicKeyNotFound should be returned when the public key corresponding to the ipns record path cannot be retrieved from the peer store.
ErrSignature should be returned when an ipns record fails signature verification.
ErrUnrecognizedValidity is returned when an IpnsRecord has an unknown validity type.

# Structs

Validator is an IPNS record validator that satisfies the libp2p record validator interface.