From 86b09b0cd7c3a7b6a4ce825564ede75a80d5605b Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Thu, 3 May 2018 06:26:58 +0200 Subject: [PATCH] Bugfix --- ledger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger.go b/ledger.go index 18fdf478e..4effa2590 100644 --- a/ledger.go +++ b/ledger.go @@ -27,7 +27,7 @@ func pubkeyLedger(device *ledger.Ledger) (pub PubKey, err error) { // Reserialize in the 33-byte compressed format cmp, err := secp256k1.ParsePubKey(key[:], secp256k1.S256()) copy(p[:], cmp.SerializeCompressed()) - return pub, err + return p, err } func signLedger(device *ledger.Ledger, msg []byte) (sig Signature, err error) {