Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit ee1cd01

Browse files
committed
Use the CONIKS hasher
The moment of truth! - Where we finally switch back to using the CONIKS hashing algorithm successfully :-)
1 parent 14151ff commit ee1cd01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/keytransparency-client/grpcc/grpc_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434

3535
"github.com/golang/protobuf/proto"
3636
"github.com/google/trillian/client"
37-
"github.com/google/trillian/merkle/maphasher"
37+
"github.com/google/trillian/merkle/coniks"
3838
"golang.org/x/net/context"
3939
"google.golang.org/grpc"
4040

@@ -98,7 +98,7 @@ func New(
9898
return &Client{
9999
cli: client,
100100
vrf: vrf,
101-
kt: kt.New(vrf, maphasher.Default, verifier, log),
101+
kt: kt.New(vrf, coniks.Default, verifier, log),
102102
log: log,
103103
mutator: entry.New(),
104104
RetryCount: 1,

integration/testutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func NewEnv(t *testing.T) *Env {
127127

128128
// Configure map.
129129
treeParams := stestonly.MapTree
130-
treeParams.HashStrategy = trillian.HashStrategy_TEST_MAP_HASHER
130+
treeParams.HashStrategy = trillian.HashStrategy_CONIKS_SHA512_256
131131
tree, err := mapEnv.AdminClient.CreateTree(ctx, &trillian.CreateTreeRequest{
132132
Tree: treeParams,
133133
})

scripts/map_payload.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tree":{
33
"tree_state":"ACTIVE",
44
"tree_type":"MAP",
5-
"hash_strategy":"TEST_MAP_HASHER",
5+
"hash_strategy":"CONIKS_SHA512_256",
66
"signature_algorithm":"ECDSA",
77
"max_root_duration":"0",
88
"hash_algorithm":"SHA256"
@@ -12,4 +12,4 @@
1212
"curve":"P256"
1313
}
1414
}
15-
}
15+
}

0 commit comments

Comments
 (0)