From 999cf63440bb08bd2588b924a8a4309c7273adff Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 28 Mar 2022 19:06:49 +0200 Subject: fix asymmetry in test Next layer of hashing is when computing a checksum. --- pkg/requests/requests_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/requests') diff --git a/pkg/requests/requests_test.go b/pkg/requests/requests_test.go index 365f90f..a4d4992 100644 --- a/pkg/requests/requests_test.go +++ b/pkg/requests/requests_test.go @@ -244,7 +244,7 @@ func validLeaf(t *testing.T) *Leaf { t.Helper() return &Leaf{ ShardHint: 1, - Preimage: *types.HashFn(newHashBufferInc(t)[:]), + Preimage: *newHashBufferInc(t), Signature: *newSigBufferInc(t), VerificationKey: *newPubBufferInc(t), DomainHint: "example.com", @@ -255,7 +255,7 @@ func validLeafASCII(t *testing.T) string { t.Helper() return fmt.Sprintf("%s=%d\n%s=%x\n%s=%x\n%s=%x\n%s=%s\n", "shard_hint", 1, - "preimage", types.HashFn(newHashBufferInc(t)[:])[:], + "preimage", newHashBufferInc(t)[:], "signature", newSigBufferInc(t)[:], "verification_key", newPubBufferInc(t)[:], "domain_hint", "example.com", -- cgit v1.2.3