diff options
author | Linus Nordberg <linus@nordberg.se> | 2022-04-29 15:31:45 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-04-29 22:16:22 +0200 |
commit | 203e2144f67269e879716e6406bb78e8e3728938 (patch) | |
tree | fed67be13cb7dfe903eb61c2d9f87ea3333f4ee5 /cmd | |
parent | cb5c579ae46ee0570f2f32408e0427f989bd33ab (diff) |
change verification_key to public_key
Issue: #40
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sigsum_log_go/main.go | 4 | ||||
-rw-r--r-- | cmd/tmp/dns/main.go | 2 | ||||
-rw-r--r-- | cmd/tmp/submit/main.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd/sigsum_log_go/main.go b/cmd/sigsum_log_go/main.go index 1e4d943..042c2df 100644 --- a/cmd/sigsum_log_go/main.go +++ b/cmd/sigsum_log_go/main.go @@ -35,7 +35,7 @@ var ( trillianID = flag.Int64("trillian_id", 0, "log identifier in the Trillian database") deadline = flag.Duration("deadline", time.Second*10, "deadline for backend requests") key = flag.String("key", "", "hex-encoded Ed25519 signing key") - witnesses = flag.String("witnesses", "", "comma-separated list of trusted witness verification keys in hex") + witnesses = flag.String("witnesses", "", "comma-separated list of trusted witness public keys in hex") maxRange = flag.Int64("max_range", 10, "maximum number of entries that can be retrived in a single request") interval = flag.Duration("interval", time.Second*30, "interval used to rotate the log's cosigned STH") shardStart = flag.Int64("shard_interval_start", 0, "start of shard interval since the UNIX epoch in seconds") @@ -168,7 +168,7 @@ func newWitnessMap(witnesses string) (map[types.Hash]types.PublicKey, error) { var vk types.PublicKey if n := copy(vk[:], b); n != types.PublicKeySize { - return nil, fmt.Errorf("Invalid verification key size: %v", n) + return nil, fmt.Errorf("Invalid public key size: %v", n) } w[*types.HashFn(vk[:])] = vk } diff --git a/cmd/tmp/dns/main.go b/cmd/tmp/dns/main.go index bb505b3..ea0a4e5 100644 --- a/cmd/tmp/dns/main.go +++ b/cmd/tmp/dns/main.go @@ -12,7 +12,7 @@ import ( ) var ( - vk = flag.String("vk", "5aed7ffc3bc088221f6579567b2e6e3c4ac3579bd5e77670755179052c68d5d3", "verification key (hex)") + vk = flag.String("vk", "5aed7ffc3bc088221f6579567b2e6e3c4ac3579bd5e77670755179052c68d5d3", "public key (hex)") domain_hint = flag.String("domain_hint", "example.com", "domain name that is aware of public key hash in hex") ) diff --git a/cmd/tmp/submit/main.go b/cmd/tmp/submit/main.go index ff7a353..5699945 100644 --- a/cmd/tmp/submit/main.go +++ b/cmd/tmp/submit/main.go @@ -41,7 +41,7 @@ func main() { } sig := ed25519.Sign(priv, msg.ToBinary()) - fmt.Printf("echo \"shard_hint=%d\nmessage=%x\nsignature=%x\nverification_key=%x\ndomain_hint=%s\" | curl --data-binary @- %s/sigsum/v0/add-leaf\n", + fmt.Printf("echo \"shard_hint=%d\nmessage=%x\nsignature=%x\npublic_key=%x\ndomain_hint=%s\" | curl --data-binary @- %s/sigsum/v0/add-leaf\n", *shardHint, p[:], sig, |