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

Not able to create valid signature using getSignatures method #253

Open
untitledlt opened this issue Oct 21, 2024 · 3 comments
Open

Not able to create valid signature using getSignatures method #253

untitledlt opened this issue Oct 21, 2024 · 3 comments

Comments

@untitledlt
Copy link

I am trying to create an unsigned transaction using @bsv/sdk lib and later sign it using Yours wallet.
No matter how I try, I am not able to produce valid signature to unlock utxo.
I tried doing this on testnet and mainnet.
Here's the parsed signature from whatsonchain.com (note [error] at the end):

"scriptSig": {
  "asm": "45022100b4a4cd3da500c325f445ea3eae25c1365a7a59f1501ab51a78dca27f5841e7d602202ae8e1680a295d7247fe OP_UNKNOWN197 OP_UNKNOWN208 OP_BASE OP_0NOTEQUAL OP_UNKNOWN240 OP_14 OP_UNKNOWN239 OP_UNKNOWN243 OP_UNKNOWN246 OP_ROLL OP_16 [error]",
  "hex": "3045022100b4a4cd3da500c325f445ea3eae25c1365a7a59f1501ab51a78dca27f5841e7d602202ae8e1680a295d7247fec5d05092f05eeff3f67a6045d9493dd032a8fc90c1fd41",
  "isTruncated": false
            },

I have created a minimal React project to show how I do that:
https://github.com/untitledlt/yours-wallet-test/blob/main/src/App.tsx

Please guide me what I am doing wrong here. Thanks!

@untitledlt
Copy link
Author

sigRequests:

[{ 
 "prevTxid":"0bd6f3bcde2604ded1564f171c5902a549f8480394821b40a683303283a1624a",
  "outputIndex":1,
  "inputIndex":0,
  "satoshis":99822,
  "address":"1Lokk79RmDdD5weTgZbFbGxW3M4NwTiSFC"
}]

@shruggr
Copy link
Collaborator

shruggr commented Oct 21, 2024

Need to include script

@shruggr
Copy link
Collaborator

shruggr commented Oct 21, 2024

The output script for the input you are signing

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

2 participants