This commit is contained in:
Christopher Goes 2018-05-03 06:26:58 +02:00
parent 391936b734
commit 86b09b0cd7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {