Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Add sighashPreimage function#136

Closed
eordano wants to merge 3 commits intobitpay:masterfrom
eordano:sighash-pre
Closed

Add sighashPreimage function#136
eordano wants to merge 3 commits intobitpay:masterfrom
eordano:sighash-pre

Conversation

@eordano
Copy link
Contributor

@eordano eordano commented Apr 18, 2017

This commit exposes the calculation of the preimage of transactions to be signed. It is useful for sharing to an external signing system so the software that will sign it knows what it is signing without having to create the "txcopy". This way the external signing can still verify what it is signing, without needing to handle the complexity of crafting the transaction, and just needs to parse it and verify the coins it's spending and where it is spending to.

The commits should make clear that there were no significant changes to this critical part. The test added is for coverage of the SIGHASH_SINGLE bug, which requires special handling.

@eordano eordano force-pushed the sighash-pre branch 2 times, most recently from bd16d80 to 3eca2c7 Compare April 18, 2017 14:55
@matiu
Copy link
Contributor

matiu commented Apr 19, 2017

Thanks. Code ACK.

@eordano eordano closed this Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants