Skip to content

Conversation

@kantai
Copy link
Collaborator

@kantai kantai commented Apr 26, 2018

This adds an interface definition and support for using it to the makeTransaction functions.

Background on the interface is here:

https://forum.blockstack.org/t/proposal-transaction-signer-interface-for-blockstack-js/5043/4

This does not add any new functionality to blockstack.js, but someone using the library would be able to define their own transaction signer class to enable support for things like multi-sig addresses, segwit, or hardware wallets.

This is tested via the existing unit tests and integration testing (npm run operations-tests)

To test on mainnet, you can link this branch into blockstack-browser and perform a registration.

@kantai kantai requested a review from larrysalibra April 27, 2018 13:53
@kantai kantai self-assigned this Apr 27, 2018
@larrysalibra
Copy link
Contributor

This worked fine with the operations integrations tests npm run integration-test-ops

Trying a mainnet transaction now.

Copy link
Contributor

@larrysalibra larrysalibra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also tested this by linking this to the develop branch of the browser and sending a mainnet bitcoin transaction to transfer funds out of my browser wallet to another address. The transaction was successfully signed. Thanks @kantai !

@kantai
Copy link
Collaborator Author

kantai commented May 4, 2018

Awesome, thanks @larrysalibra -- will add an entry to the changelog.md and then merge.

@kantai kantai merged commit 91797b7 into develop May 4, 2018
@kantai kantai deleted the feature/transaction-signer-interface branch May 4, 2018 16:30
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.

3 participants