aboutsummaryrefslogtreecommitdiff
path: root/cmd/tmp/submit
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 15:08:53 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-29 22:16:22 +0200
commitcb5c579ae46ee0570f2f32408e0427f989bd33ab (patch)
tree3848d1e492a8d947062494d935b432f25b352370 /cmd/tmp/submit
parent26a04562c886dd1c46e738e29d2754631ff33992 (diff)
change 'preimage' to 'message'
Issue: #40
Diffstat (limited to 'cmd/tmp/submit')
-rw-r--r--cmd/tmp/submit/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/tmp/submit/main.go b/cmd/tmp/submit/main.go
index e688284..ff7a353 100644
--- a/cmd/tmp/submit/main.go
+++ b/cmd/tmp/submit/main.go
@@ -15,7 +15,7 @@ import (
var (
shardHint = flag.Uint64("shard_hint", 0, "shard hint (decimal)")
- preimage = flag.String("preimage", "", "preimage (hex)")
+ message = flag.String("message", "", "message (hex)")
sk = flag.String("sk", "", "secret key (hex)")
domainHint = flag.String("domain_hint", "example.com", "domain hint (string)")
base_url = flag.String("base_url", "localhost:6965/testonly", "base url (string)")
@@ -29,8 +29,8 @@ func main() {
mustDecodeHex(*sk, priv[:])
var p types.Hash
- if *preimage != "" {
- mustDecodeHex(*preimage, p[:])
+ if *message != "" {
+ mustDecodeHex(*message, p[:])
} else {
mustPutRandom(p[:])
}
@@ -41,7 +41,7 @@ func main() {
}
sig := ed25519.Sign(priv, msg.ToBinary())
- fmt.Printf("echo \"shard_hint=%d\npreimage=%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\nverification_key=%x\ndomain_hint=%s\" | curl --data-binary @- %s/sigsum/v0/add-leaf\n",
*shardHint,
p[:],
sig,