modulepackage
0.3.1
Repository: https://github.com/libp2p/go-libp2p-record.git
Documentation: pkg.go.dev
# README
go-libp2p-record
signed records for use with routing systems
Documentation
See https://godoc.org/github.com/libp2p/go-libp2p-record.
Testing
This package has some tests that rely on generating weak RSA keys (for speed).
In order to successfully run the tests, one must set the environment variable,
LIBP2P_ALLOW_WEAK_RSA_KEYS
to any non-empty value, such as 1
.
Contribute
Feel free to join in. All welcome. Open an issue!
This repository falls under the libp2p Code of Conduct.
Want to hack on libp2p?
License
MIT
The last gx published version of this module was: 4.1.15: QmbeHtaBy9nZsW4cHRcvgVY4CnDhXudE2Dr6qDxS7yg9rX
# Packages
No description provided by the author
# Functions
MakePutRecord creates a dht record for the given key/value pair.
SplitKey takes a key in the form `/$namespace/$path` and splits it into `$namespace` and `$path`.
# Variables
ErrInvalidRecordType is returned if a DHTRecord keys prefix is not found in the Validator map of the DHT.
# Structs
ErrBetterRecord is returned by a subsystem when it fails because it found a better record.
PublicKeyValidator is a Validator that validates public keys.
# Interfaces
Validator is an interface that should be implemented by record validators.
# Type aliases
NamespacedValidator is a validator that delegates to sub-validators by namespace.