Commit e980e68f authored by Dirk McCormick's avatar Dirk McCormick

Comment fixes

License: MIT
Signed-off-by: default avatarDirk McCormick <dirkmdev@gmail.com>
parent dafa140e
......@@ -10,8 +10,8 @@ import (
proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
)
// Selects best record by checking which has the highest sequence number
// and latest EOL
// IpnsSelectorFunc selects the best record by checking which has the highest
// sequence number and latest EOL
func IpnsSelectorFunc(k string, vals [][]byte) (int, error) {
var recs []*pb.IpnsEntry
for _, v := range vals {
......
......@@ -29,7 +29,7 @@ var ErrInvalidPath = errors.New("record path invalid")
// signature verification
var ErrSignature = errors.New("record signature verification failed")
// Returns a ValidChecker for IPNS records
// NewIpnsRecordValidator returns a ValidChecker for IPNS records
// The validator function will get a public key from the KeyBook
// to verify the record's signature
func NewIpnsRecordValidator(kbook pstore.KeyBook) *record.ValidChecker {
......
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