Commit 8a2d50b5 authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

verify ipns records

parent 5c3d9fb3
......@@ -86,7 +86,6 @@ func NewDHT(ctx context.Context, p peer.Peer, ps peer.Peerstore, dialer inet.Dia
dht.birth = time.Now()
dht.Validators = make(map[string]ValidatorFunc)
dht.Validators["ipns"] = ValidateIpnsRecord
dht.Validators["pk"] = ValidatePublicKeyRecord
if doPinging {
......
......@@ -96,11 +96,6 @@ func (dht *IpfsDHT) verifyRecord(r *pb.Record) error {
return fnc(u.Key(r.GetKey()), r.GetValue())
}
func ValidateIpnsRecord(k u.Key, val []byte) error {
// TODO:
return nil
}
func ValidatePublicKeyRecord(k u.Key, val []byte) error {
keyparts := bytes.Split([]byte(k), []byte("/"))
if len(keyparts) < 3 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment