From 3143ec328e908e50791c877a008a2b6e17262ce5 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 20 Nov 2013 10:47:44 -0500 Subject: [PATCH] Correctly serialize pubkeys for imported keys. --- wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index bfb2bc8..738338a 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -1164,7 +1164,7 @@ func newBtcAddress(privkey, iv []byte, bs *BlockStamp, compressed bool) (addr *b } addr.privKeyCT.key = privkey copy(addr.initVector[:], iv) - addr.pubKey = pubkeyFromPrivkey(privkey, true) + addr.pubKey = pubkeyFromPrivkey(privkey, compressed) copy(addr.pubKeyHash[:], calcHash160(addr.pubKey)) return addr, nil