Skip to content

Commit

Permalink
Fix changes in package function
Browse files Browse the repository at this point in the history
  • Loading branch information
KforG committed Feb 28, 2024
1 parent 416a303 commit 61c5d43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions keyfile/keyfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func CreateKeyFile(pass string) error {
}

// Derive pubkey
_, pub := btcec.PrivKeyFromBytes(btcec.S256(), priv32[:])
_, pub := btcec.PrivKeyFromBytes(priv32[:])

salt := new([24]byte) // salt for scrypt / nonce for secretbox
dk32 := new([32]byte) // derived key from scrypt
Expand Down Expand Up @@ -131,6 +131,6 @@ func TestPassword(password string) bool {
if err != nil {
return false
}
_, pub := btcec.PrivKeyFromBytes(btcec.S256(), priv)
_, pub := btcec.PrivKeyFromBytes(priv)
return bytes.Equal(loadPublicKey(), pub.SerializeCompressed())
}
2 changes: 1 addition & 1 deletion wallet/signsend.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (w *Wallet) SignMyInputs(tx *wire.MsgTx, password string) error {
return err
}

priv, _ := btcec.PrivKeyFromBytes(btcec.S256(), privBytes)
priv, _ := btcec.PrivKeyFromBytes(privBytes)

for i := range tx.TxIn {
sigStash[i], err = txscript.SignatureScript(tx, i, w.Script, txscript.SigHashAll, priv, true)
Expand Down

0 comments on commit 61c5d43

Please sign in to comment.