Versions in this module Expand all Collapse all v0 v0.2.0 May 31, 2023 Changes in this version + var ErrBadRecord = errors.New("record could not be unmarshalled") + var ErrExpiredRecord = errors.New("expired record") + var ErrInvalidPath = errors.New("record path invalid") + var ErrKeyFormat = errors.New("record key could not be parsed into peer ID") + var ErrPublicKeyMismatch = errors.New("public key in record did not match expected pubkey") + var ErrPublicKeyNotFound = errors.New("public key not found in peer store") + var ErrSignature = errors.New("record signature verification failed") + var ErrUnrecognizedValidity = errors.New("unrecognized validity type") + func Compare(a, b *pb.IpnsEntry) (int, error) + func Create(sk ic.PrivKey, val []byte, seq uint64, eol time.Time) (*pb.IpnsEntry, error) + func EmbedPublicKey(pk ic.PubKey, entry *pb.IpnsEntry) error + func ExtractPublicKey(pid peer.ID, entry *pb.IpnsEntry) (ic.PubKey, error) + func GetEOL(entry *pb.IpnsEntry) (time.Time, error) + func RecordKey(pid peer.ID) string + func Validate(pk ic.PubKey, entry *pb.IpnsEntry) error + type Validator struct + KeyBook pstore.KeyBook + func (v Validator) Select(k string, vals [][]byte) (int, error) + func (v Validator) Validate(key string, value []byte) error