certichain

Blockchain built from scratch for verifying document's legitimacy.
Log | Files | Refs | README | LICENSE

commit eb87536f2fd291176e5e0d2dfeb20a8abfe12f2b
parent edf127371ad75bbe919993033e8281a1b1cfde94
Author: Shivakumar <[email protected]>
Date:   Fri,  7 Aug 2026 02:27:34 +0530

fix(cmd): remove entire payload print and add anchor to help

Signed-off-by: Shivakumar <[email protected]>

Diffstat:
Mcmd/institution/anchor.go | 3---
Mcmd/institution/main.go | 4+++-
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/cmd/institution/anchor.go b/cmd/institution/anchor.go @@ -79,9 +79,6 @@ func runAnchor(args []string) { Signature: hex.EncodeToString(tx.Signature), } - prettyJSON, _ := json.MarshalIndent(payload, "", " ") - fmt.Println(string(prettyJSON)) - body, err := json.Marshal(payload) if err != nil { fmt.Fprintln(os.Stderr, "encoding request:", err) diff --git a/cmd/institution/main.go b/cmd/institution/main.go @@ -55,8 +55,10 @@ func printUsage() { fmt.Fprintln(os.Stdout, "usage: certi <command> [flags]") fmt.Fprintln(os.Stdout, "commands:") fmt.Fprintln(os.Stdout, "\tinit\tgenerate and store a new institution keypair") + fmt.Fprintln(os.Stdout, "\tanchor\tcreates a transaction from the merkleroot and anchors to blockchain") fmt.Fprintln(os.Stdout, "flags:") - fmt.Fprintln(os.Stdout, "\t-force\toverwrite existing key without prompting") + fmt.Fprintln(os.Stdout, "\t-force\t[init] overwrite existing key without prompting") + fmt.Fprintln(os.Stdout, "\t-url\t[anchor] default: localhost:8080, but can be set to other url") } func runInit(args []string) {