diff --git a/account.go b/account.go index 9d56008..bfb2e6a 100644 --- a/account.go +++ b/account.go @@ -467,8 +467,6 @@ func (a *Account) NewAddress() (string, error) { // Request updates from btcd for new transactions sent to this address. a.ReqNewTxsForAddress(addr) - fmt.Println("after") - return addr, nil } diff --git a/wallet/wallet.go b/wallet/wallet.go index ddfd1ae..a5ca2a4 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -1252,20 +1252,20 @@ func newRootBtcAddress(privKey, iv, chaincode []byte, // address will be unspendable. This step requires an unencrypted or // unlocked btcAddress. func (a *btcAddress) verifyKeypairs() error { - // Parse public key. - pubkey, err := btcec.ParsePubKey(a.pubKey, btcec.S256()) - if err != nil { - return err - } + // Parse public key. + pubkey, err := btcec.ParsePubKey(a.pubKey, btcec.S256()) + if err != nil { + return err + } if len(a.privKeyCT.key) != 32 { return errors.New("private key unavailable") } - privkey := &ecdsa.PrivateKey{ - PublicKey: *pubkey, - D: new(big.Int).SetBytes(a.privKeyCT.key), - } + privkey := &ecdsa.PrivateKey{ + PublicKey: *pubkey, + D: new(big.Int).SetBytes(a.privKeyCT.key), + } data := "String to sign." r, s, err := ecdsa.Sign(rand.Reader, privkey, []byte(data))