aboutsummaryrefslogtreecommitdiff
path: root/cmd/tmp
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/tmp')
-rw-r--r--cmd/tmp/cosign/main.go6
-rw-r--r--cmd/tmp/submit/main.go4
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd/tmp/cosign/main.go b/cmd/tmp/cosign/main.go
index a51f17d..629e7ac 100644
--- a/cmd/tmp/cosign/main.go
+++ b/cmd/tmp/cosign/main.go
@@ -9,11 +9,11 @@ import (
"log"
"net/http"
- "github.com/system-transparency/stfe/pkg/types"
+ "golang.sigsum.org/sigsum-log-go/pkg/types"
)
var (
- url = flag.String("url", "http://localhost:6965/st/v0", "base url")
+ url = flag.String("url", "http://localhost:6965/sigsum/v0", "base url")
sk = flag.String("sk", "e1d7c494dacb0ddf809a17e4528b01f584af22e3766fa740ec52a1711c59500d711090dd2286040b50961b0fe09f58aa665ccee5cb7ee042d819f18f6ab5046b", "hex key")
)
@@ -48,7 +48,7 @@ func main() {
if err := sigident.MarshalASCII(buf); err != nil {
log.Fatalf("MarshalASCII: %v", err)
}
- rsp, err = http.Post(*url+"/add-cosignature", "type/stfe", buf)
+ rsp, err = http.Post(*url+"/add-cosignature", "type/sigsum", buf)
if err != nil {
log.Fatalf("Post: %v", err)
}
diff --git a/cmd/tmp/submit/main.go b/cmd/tmp/submit/main.go
index 3dcaa97..43fd457 100644
--- a/cmd/tmp/submit/main.go
+++ b/cmd/tmp/submit/main.go
@@ -7,7 +7,7 @@ import (
"crypto/rand"
"fmt"
- "github.com/system-transparency/stfe/pkg/types"
+ "golang.sigsum.org/sigsum-log-go/pkg/types"
)
func main() {
@@ -25,5 +25,5 @@ func main() {
sig := ed25519.Sign(sk, msg.Marshal())
//fmt.Printf("sk: %x\nvk: %x\n", sk[:], vk[:])
- fmt.Printf("echo \"shard_hint=%d\nchecksum=%x\nsignature_over_message=%x\nverification_key=%x\ndomain_hint=%s\" | curl --data-binary @- localhost:6965/st/v0/add-leaf\n", msg.ShardHint, msg.Checksum[:], sig, vk[:], "example.com")
+ fmt.Printf("echo \"shard_hint=%d\nchecksum=%x\nsignature=%x\nverification_key=%x\ndomain_hint=%s\" | curl --data-binary @- localhost:6965/sigsum/v0/add-leaf\n", msg.ShardHint, msg.Checksum[:], sig, vk[:], "example.com")
}