Skip to content

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.

2 participants