Remove some fmt.Printf debugging.

This commit is contained in:
Josh Rickmar 2013-12-03 12:45:27 -05:00
parent c54af23849
commit 378af40329
2 changed files with 9 additions and 11 deletions

View file

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

View file

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