Skip to content

Create demo Bitcoin transaction verification #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
webmaster128 opened this issue Feb 25, 2021 · 2 comments
Closed

Create demo Bitcoin transaction verification #798

webmaster128 opened this issue Feb 25, 2021 · 2 comments

Comments

@webmaster128
Copy link
Member

webmaster128 commented Feb 25, 2021

This replaces #754. We now have crypto API's secp256k1_recover_pubkey and secp256k1_verify. This should be the only building blocks needed by the contract to verify Bitcoin thransaction. The rest is encoding and hashing, which is done in the contract.

In this ticket, we want a comple example of a Bitcoin transaction verification in the development contract https://github.com/CosmWasm/cosmwasm/tree/main/contracts/crypto-verify

Interesting material:

@webmaster128
Copy link
Member Author

This is done in a different repo and can be ported over easily. Turns out that a Bitcoin signature verification does not mean you can unlock an input. So the value for a Bitcoin application is questionable. However it shows one part. Also it brings in DER signature decoding, which Ethereum did not need at the end of the day.

@webmaster128
Copy link
Member Author

Out of scope for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant