提交 e980e68f 作者: Dirk McCormick

Comment fixes

License: MIT
Signed-off-by: 's avatarDirk McCormick <dirkmdev@gmail.com>
上级 dafa140e
...@@ -10,8 +10,8 @@ import ( ...@@ -10,8 +10,8 @@ import (
proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto" proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
) )
// Selects best record by checking which has the highest sequence number // IpnsSelectorFunc selects the best record by checking which has the highest
// and latest EOL // sequence number and latest EOL
func IpnsSelectorFunc(k string, vals [][]byte) (int, error) { func IpnsSelectorFunc(k string, vals [][]byte) (int, error) {
var recs []*pb.IpnsEntry var recs []*pb.IpnsEntry
for _, v := range vals { for _, v := range vals {
......
...@@ -29,7 +29,7 @@ var ErrInvalidPath = errors.New("record path invalid") ...@@ -29,7 +29,7 @@ var ErrInvalidPath = errors.New("record path invalid")
// signature verification // signature verification
var ErrSignature = errors.New("record signature verification failed") 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 // The validator function will get a public key from the KeyBook
// to verify the record's signature // to verify the record's signature
func NewIpnsRecordValidator(kbook pstore.KeyBook) *record.ValidChecker { func NewIpnsRecordValidator(kbook pstore.KeyBook) *record.ValidChecker {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论