From 378af40329a3e83c89264e81a558ac546872d1ea Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 3 Dec 2013 12:45:27 -0500 Subject: [PATCH] Remove some fmt.Printf debugging. --- account.go | 2 -- wallet/wallet.go | 18 +++++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) 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))