CPubKey::Verify fails
Closed this issue · 2 comments
CPubKey::Verify is currently failing for keys created using OpenSSL. This is likely related to the switch to secp256k1 in the new bitcoin codebase.
CPubKey::Verify is currently hard-coded to return [TRUE] until the issue is addressed and resolved.
[secp256k1_ecdsa_verify] is the source of the failure. Verifying block signatures works without issues, but transaction signatures checks fail at present. This lead me to look into the tx signature specific code and my hunch is that the signature hash [SignatureHash()] generated during signature checking is using a slightly different algorithm in the new codebae vs. the old one.
Hopefully this is the source of the problem and a few changes to the hash generator will fix up the issue...