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