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

Minor warning fix, and improvement to transaction signing API #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BadPirate
Copy link

Found it necessary to sign a transaction that wasn't generated using the builder. Moved the transaction input signing functionality into BTCTransaction and exposed it there.

Tested:
Downloaded an unsigned transaction from coinb.in -- Signed it with my own private key -- Verified transaction was now signed correctly.

@caffeinum
Copy link

Can you add a code example please? I have exactly the same workflow

@BadPirate
Copy link
Author

@caffeinum - If you pull this version you should be able to call the private method from wherever you need and pass in the values rather than a top level object.

@caffeinum
Copy link

In case somebody stumbles upon this thread and is interested in the case, I implemented this differently: https://github.com/flightwallet/ios/blob/master/flight.wallet/Wallet/BitcoinWallet.swift#L276

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