Skip to content
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

How to sig a P2SH script? #118

Open
AlleniCode opened this issue Sep 13, 2018 · 0 comments
Open

How to sig a P2SH script? #118

AlleniCode opened this issue Sep 13, 2018 · 0 comments

Comments

@AlleniCode
Copy link

Here is a unspent out tx:

<BTCTransactionOutput:0x0x6040002aff60 6d2b7d3ce940854abb68767a7e5572a6f4ac492e4f1fbbf232e2a03372da80be:0 0.00000001 BTC 'OP_HASH160 a2eb5e481b2092ad4ee15a542649aaa1a3e02d58 OP_EQUAL'>

I call this func to sig, but failed!

- (NSData*) signatureHashForScript:(BTCScript*)subscript inputIndex:(uint32_t)inputIndex hashType:(BTCSignatureHashType)hashType error:(NSError**)errorOut;

"script_type": "pay-to-script-hash"

How to sig a P2SH script? Thx!

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