Open sigHash opened 5 years ago
var hash = tx.GetSignatureHash(coinToSpend);
you have a wrapper of secp256k1_ecdsa_sign
somewhere?
you have a wrapper of
secp256k1_ecdsa_sign
somewhere?
I don't, but these guys do: https://github.com/breadwallet/breadwallet-core
You could make it even more lightweight if you get rid of all SPV stuff.
If I have a script coin to spend and I create an unsigned transaction, how can I generate "m" for each input where m is data to be signed as in ECDSA math:
S = k-1 (Hash(m) + dA * R) mod p
I have an ultra thin client that uses secp256k1_ecdsa_sign to sign.