diff --git a/address.go b/address.go index 2de7a4a..5a73bb7 100644 --- a/address.go +++ b/address.go @@ -402,7 +402,7 @@ func NewAddressPubKey(serializedPubKey []byte, net btcwire.BitcoinNet) (*Address netID = TestNetAddr } - ecPubKey := (*btcec.PublicKey)(pubKey) + ecPubKey := pubKey return &AddressPubKey{ pubKeyFormat: pkFormat, pubKey: ecPubKey,