From cc9bb6a069d62ed37b7f4866d6dfe37049dc1cf1 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 23 Apr 2022 18:44:09 +0200 Subject: remove sigsum-debug (pending merge in sigsum-go) --- cmd/sigsum-debug/sign/sign.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 cmd/sigsum-debug/sign/sign.go (limited to 'cmd/sigsum-debug/sign') diff --git a/cmd/sigsum-debug/sign/sign.go b/cmd/sigsum-debug/sign/sign.go deleted file mode 100644 index c984cb5..0000000 --- a/cmd/sigsum-debug/sign/sign.go +++ /dev/null @@ -1,32 +0,0 @@ -package sign - -import ( - "fmt" - - "git.sigsum.org/sigsum-go/pkg/hex" - "git.sigsum.org/sigsum-go/pkg/types" - "git.sigsum.org/sigsum-tools-go/internal/util" -) - -func Main(_ []string, optPriv string, optShardHint uint64) error { - data, err := util.BytesFromStdin() - if err != nil { - return fmt.Errorf("sign: %v", err) - } - priv, err := util.SignerFromHex(optPriv) - if err != nil { - return fmt.Errorf("sign: %v", err) - } - preimage := types.HashFn(data) - stm := types.Statement{ - ShardHint: optShardHint, - Checksum: *types.HashFn(preimage[:]), - } - sig, err := stm.Sign(priv) - if err != nil { - fmt.Errorf("sign: %v", err) - } - - fmt.Printf("%s\n", hex.Serialize(sig[:])) - return nil -} -- cgit v1.2.3