lotus/node/modules/core.go

17 lines
405 B
Go
Raw Normal View History

package modules
import (
2019-07-03 17:39:07 +00:00
logging "github.com/ipfs/go-log"
"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")
// RecordValidator provides namesys compatible routing record validator
func RecordValidator(ps peerstore.Peerstore) record.Validator {
return record.NamespacedValidator{
"pk": record.PublicKeyValidator{},
}
}