From 751568a4ddf06b013d7e1556141f354fbb27451d Mon Sep 17 00:00:00 2001 From: ZenGround0 Date: Mon, 30 Nov 2020 22:50:41 -0500 Subject: [PATCH] Print hex --- cmd/lotus-shed/ledger.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-shed/ledger.go b/cmd/lotus-shed/ledger.go index ecb13ec64..b3eb71a16 100644 --- a/cmd/lotus-shed/ledger.go +++ b/cmd/lotus-shed/ledger.go @@ -242,13 +242,14 @@ var ledgerSignTestCmd = &cli.Command{ if err != nil { return err } + fmt.Printf("Message: %x\n", b.RawData()) sig, err := fl.SignSECP256K1(p, b.RawData()) if err != nil { return err } - fmt.Println(sig.SignatureBytes()) + fmt.Printf("Signature: %x\n", sig.SignatureBytes()) return nil },