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

Commit ae66d5f

Browse files
committed
Fixups
1 parent c6d6046 commit ae66d5f

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

cmd/keytransparency-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func main() {
181181
glog.Exitf("grpc.Dial(%v): %v", *mapURL, err)
182182
}
183183
tmap := trillian.NewTrillianMapClient(mconn)
184-
tadmin = trillian.NewTrillianAdminClient(mconn)
184+
tadmin := trillian.NewTrillianAdminClient(mconn)
185185

186186
// Create gRPC server.
187187
svr := keyserver.New(*logID, tlog, *mapID, tmap, tadmin, commitments,

core/client/kt/verify.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,18 @@ var (
4747

4848
// Verifier is a client helper library for verifying request and responses.
4949
type Verifier struct {
50-
mapID int64
5150
vrf vrf.PublicKey
5251
hasher hashers.MapHasher
5352
sig crypto.PublicKey
5453
log client.LogVerifier
5554
}
5655

5756
// New creates a new instance of the client verifier.
58-
func New(mapID int64,
59-
vrf vrf.PublicKey,
57+
func New(vrf vrf.PublicKey,
6058
hasher hashers.MapHasher,
6159
sig crypto.PublicKey,
6260
log client.LogVerifier) *Verifier {
6361
return &Verifier{
64-
mapID: mapID,
6562
vrf: vrf,
6663
hasher: hasher,
6764
sig: sig,

core/tree/sparse/common_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ import (
2222

2323
func TestComputeNodeValues(t *testing.T) {
2424
for _, tc := range []struct {
25-
bindex string
26-
leafHash []byte
27-
neighbors []Hash
28-
expected []string
25+
bindex string
26+
leafHash []byte
27+
neighbors []Hash
28+
expectedLen int
2929
}{
30-
{"0100", []byte(""), make([]Hash, 4), []string{"0100", "010", "01", "0", ""}},
30+
{"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", []byte(""), make([]Hash, 256), 256},
3131
} {
3232
actual := NodeValues(0, coniks.Default, tc.bindex, tc.leafHash, tc.neighbors)
33-
if got, want := len(actual), len(tc.expected); got != want {
33+
if got, want := len(actual), tc.expectedLen; got != want {
3434
t.Errorf("len(%v)=%v, want %v", actual, got, want)
3535
}
3636
}

integration/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (e *Env) setupHistory(ctx context.Context, userID string, signers []signatu
259259
// did not submit a new profile in that epoch, or contains the profile
260260
// that the user is submitting. The user profile history contains the
261261
// following profiles:
262-
// [nil, nil, 1, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5, 5, 5, 6, 6, 5, 7, 7].
262+
// [nil, 1, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5, 5, 5, 6, 6, 5, 7, 7].
263263
// Note that profile 5 is submitted twice by the user to test that
264264
// filtering case.
265265
for i, p := range [][]byte{

0 commit comments

Comments
 (0)