Correctly serialize pubkeys for imported keys.

This commit is contained in:
Josh Rickmar 2013-11-20 10:47:44 -05:00
parent 455a376df8
commit 3143ec328e

View file

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