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

added local client variable #1648

Merged
merged 1 commit into from
Jan 27, 2016
Merged

added local client variable #1648

merged 1 commit into from
Jan 27, 2016

Conversation

ulrichard
Copy link
Contributor

fixes issue 1605

ecdsa added a commit that referenced this pull request Jan 27, 2016
@ecdsa ecdsa merged commit edcd40f into spesmilo:master Jan 27, 2016
@ecdsa
Copy link
Member

ecdsa commented Jan 27, 2016

thanks!

Toporin pushed a commit to Toporin/electrum-satochip that referenced this pull request Feb 16, 2021
…tSig (spesmilo#1648)

fixes spesmilo#1628
continues the theme of spesmilo#1637 -- if an input has scriptSig, it *is*
essentially complete.

If people are doing smart contracts and need to save unsigned transactions,
my recommendation for the initial wallet:
- txin['type'] = 'unknown'
- set txin['scriptSig'] to anything you want, but I recommend making sure
  the first couple of bytes are 0000 or ffff, something like that, which
  ensures it won't get misinterpreted as one of the special input types.
  You can even embed metadata or signatures here, go wild.

Upon loading the transaction, Electron Cash will think that input is of
an unknown type (good) but also thinks it is complete (wrong). As a result,
the user will be presented with the ability to broadcast the tx, which
will of course fail. It's your job as smart contract author to do something
about that. Perhaps we can add a hook at the end of
`Transaction.deserialize()`?
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

Successfully merging this pull request may close these issues.

None yet

2 participants