aboutsummaryrefslogtreecommitdiff
path: root/pkg/dns/dns.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/dns/dns.go')
-rw-r--r--pkg/dns/dns.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/dns/dns.go b/pkg/dns/dns.go
index 8fbcfdf..606ce7b 100644
--- a/pkg/dns/dns.go
+++ b/pkg/dns/dns.go
@@ -9,6 +9,7 @@ import (
"strings"
"git.sigsum.org/sigsum-go/pkg/hex"
+ "git.sigsum.org/sigsum-go/pkg/merkle"
"git.sigsum.org/sigsum-go/pkg/types"
)
@@ -45,7 +46,7 @@ func (dr *DefaultResolver) Verify(ctx context.Context, name string, pub *types.P
}
func validResponse(pub *types.PublicKey, rsps []string) error {
- keyHash := hex.Serialize(types.HashFn(pub[:])[:])
+ keyHash := hex.Serialize(merkle.HashFn(pub[:])[:])
for _, rsp := range rsps {
if rsp == keyHash {
return nil