diff options
author | Linus Nordberg <linus@nordberg.se> | 2022-03-25 16:38:19 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-28 19:10:49 +0200 |
commit | 2420cff48ae963f07412b70909d178f332d25058 (patch) | |
tree | 00be8a35196a146782da2612dbb3bd2930705b65 /pkg/types | |
parent | 8634892aa6d5d59f73e50652dbe750df263853a3 (diff) |
rename 'ctx'
This is old terminology.
Diffstat (limited to 'pkg/types')
-rw-r--r-- | pkg/types/tree_head_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/types/tree_head_test.go b/pkg/types/tree_head_test.go index f20afe0..678b935 100644 --- a/pkg/types/tree_head_test.go +++ b/pkg/types/tree_head_test.go @@ -108,19 +108,19 @@ func TestSignedTreeHeadFromASCII(t *testing.T) { func TestSignedTreeHeadVerify(t *testing.T) { th := validTreeHead(t) signer, pub := newKeyPair(t) - ctx := HashFn(pub[:]) + kh := HashFn(pub[:]) - sth, err := th.Sign(signer, ctx) + sth, err := th.Sign(signer, kh) if err != nil { t.Fatal(err) } - if !sth.Verify(&pub, ctx) { + if !sth.Verify(&pub, kh) { t.Errorf("failed verifying a valid signed tree head") } sth.TreeSize += 1 - if sth.Verify(&pub, ctx) { + if sth.Verify(&pub, kh) { t.Errorf("succeeded verifying an invalid signed tree head") } } |