Correctly serialize pubkeys for imported keys.
This commit is contained in:
parent
455a376df8
commit
3143ec328e
1 changed files with 1 additions and 1 deletions
|
@ -1164,7 +1164,7 @@ func newBtcAddress(privkey, iv []byte, bs *BlockStamp, compressed bool) (addr *b
|
||||||
}
|
}
|
||||||
addr.privKeyCT.key = privkey
|
addr.privKeyCT.key = privkey
|
||||||
copy(addr.initVector[:], iv)
|
copy(addr.initVector[:], iv)
|
||||||
addr.pubKey = pubkeyFromPrivkey(privkey, true)
|
addr.pubKey = pubkeyFromPrivkey(privkey, compressed)
|
||||||
copy(addr.pubKeyHash[:], calcHash160(addr.pubKey))
|
copy(addr.pubKeyHash[:], calcHash160(addr.pubKey))
|
||||||
|
|
||||||
return addr, nil
|
return addr, nil
|
||||||
|
|
Loading…
Reference in a new issue