Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-routing
Commits
8a2d50b5
Commit
8a2d50b5
authored
Nov 11, 2014
by
Jeromy
Committed by
Juan Batiz-Benet
Nov 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
verify ipns records
parent
5c3d9fb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
dht/dht.go
dht/dht.go
+0
-1
dht/records.go
dht/records.go
+0
-5
No files found.
dht/dht.go
View file @
8a2d50b5
...
...
@@ -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
{
...
...
dht/records.go
View file @
8a2d50b5
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment