From cb5c579ae46ee0570f2f32408e0427f989bd33ab Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 29 Apr 2022 15:08:53 +0200 Subject: change 'preimage' to 'message' Issue: #40 --- cmd/tmp/submit/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd/tmp') 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, -- cgit v1.2.3