2019-06-25 11:42:17 +00:00
|
|
|
package modules
|
2019-07-01 10:18:00 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/libp2p/go-libp2p-core/peerstore"
|
|
|
|
record "github.com/libp2p/go-libp2p-record"
|
|
|
|
)
|
|
|
|
|
|
|
|
// RecordValidator provides namesys compatible routing record validator
|
|
|
|
func RecordValidator(ps peerstore.Peerstore) record.Validator {
|
|
|
|
return record.NamespacedValidator{
|
|
|
|
"pk": record.PublicKeyValidator{},
|
|
|
|
}
|
|
|
|
}
|