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

Add Bitcoin RPC provider #65

Merged
merged 8 commits into from Oct 4, 2018
Merged

Add Bitcoin RPC provider #65

merged 8 commits into from Oct 4, 2018

Conversation

harshjv
Copy link
Member

@harshjv harshjv commented Sep 27, 2018

This PR removes API/RPC methods from Hardware provider and simplifies Bitcoin transaction signing. Fixes #53, #54, #55

  • Add Address
  • Remove blockchain.info API calls from BitcoinLedgerProvider
  • Introduce isUsedAddress method on Client
  • Add LedgerProvider
  • Rebase with master
  • Update docs

@harshjv harshjv added the wip label Sep 27, 2018
@harshjv harshjv requested review from matthewjablack and i3wgnit and removed request for i3wgnit September 27, 2018 15:39
src/Client.js Outdated
async isUsedAddress (address) {
const isUsed = await this.getMethod('isUsedAddress')(address)

return isUsed
Copy link
Contributor

Choose a reason for hiding this comment

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

Can simplify this to

return this.getMethod('isUsedAddress')(address)


import Transport from '@ledgerhq/hw-transport-node-hid'

export default class LedgerProvider extends Provider {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, I like it

@harshjv harshjv merged commit 1993f75 into master Oct 4, 2018
@kraikov kraikov deleted the add-bitcoin-rpc branch April 29, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants