Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Feature/bigint (#99)
Browse files Browse the repository at this point in the history
* replace bitcoinjs-lib byt trezor-utxo-lib

* change imports for trezor-utxo-lib

* replace number with strings (amount)

* fix OutputInfo flowtype

* Update .flowconfig

* Update .travis.yml

* import trezor-utxo-lib package from npm

* Add new @trezor/utxo-lib

* New version of trezor-link, incorporate bridge-fallback changes

* Bump trezor-link

* Bump trezor-link because of webusb changes

* Cancel request when cached and entered passphrase are not the same. Emit Invalid passphrase error.

* Necessary changes for Zcash Blossom upgrade

* Update @trezor/utxo-lib, bump version
  • Loading branch information
TomasZorvan authored Dec 11, 2019
1 parent 70901a7 commit 613295d
Show file tree
Hide file tree
Showing 15 changed files with 783 additions and 713 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
dist: trusty

node_js:
- "6.0.0"
- "6.2.2"

before_script:
- yarn
Expand Down
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Note that the lenght of the action is not tied to the actual device actions. You
| getAddress | path:&nbsp;Array&lt;number&gt;<br>coin:&nbsp;string<br>display:&nbsp;boolean | Promise&lt;Response<br>&lt;{ address:&nbsp;string }&gt;&gt;&gt; | Gets address with a given path.<br>Coin is the name of coin ("bitcoin", "testnet", "litecoin",...)<br>if `display` is true, the address is displayed on TREZOR and user has to confirm. |
| ethereumGetAddress | address_n:&nbsp;Array&lt;number&gt;<br>display:&nbsp;?boolean | Promise&lt;Response<br>&lt;{ address:&nbsp;string, path:&nbsp;Array&lt;number&gt; }&gt;&gt; | Gets Ethereum address from a given path.<br>if `display` is true, the address is displayed on TREZOR and user has to confirm. |
| verifyAddress | path:&nbsp;Array&lt;number&gt;<br>refAddress:&nbsp;string&nbsp;<br>coin:&nbsp;string&nbsp; | Promise&lt;boolean&gt; | Gets address with the given path, displays it on display and compares to the `refAddress`.<br><br>Note: promise doesn't reject on different result, but resolves with **false**. It rejects on user not confirming on device. |
| getHDNode | path:&nbsp;Array&lt;number&gt;<br>coin:&nbsp;string&nbsp; | Promise&lt;HDNode&gt; | Returns [bitcoin.js HDNode](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/hdnode.js) with the given path. (No confirmation needed; it's public node.) |
| getHDNode | path:&nbsp;Array&lt;number&gt;<br>coin:&nbsp;string&nbsp; | Promise&lt;HDNode&gt; | Returns [bitcoin.js HDNode](https://github.com/trezor/trezor-utxo-lib/tree/master/src/hdnode.js) with the given path. (No confirmation needed; it's public node.) |
| wipeDevice | | Promise | Wipes the device (after user confirms). |
| resetDevice | settings:&nbsp;{<br>`strength`:&nbsp;number,<br>`passphrase_protection`:<br>boolean,<br>`pin_protection`:&nbsp;boolean,<br>`label`:&nbsp;string<br>`language`:&nbsp;string<br>`u2f_counter`:&nbsp;number<br>`skip_backup`:&nbsp;boolean } | Promise | Sets a new device. It has to be wiped first. It resolves after user confirms all the words on display. |
| loadDevice | settings:&nbsp;{<br>`strength`:&nbsp;number,<br>`passphrase_protection`:<br>boolean,<br>`pin_protection`:&nbsp;boolean,<br>`label`:&nbsp;string,<br>`mnemonic`:&nbsp;string,<br>`node`&nbsp;HDNode,<br>`payload`:&nbsp;string }<br>network:&nbsp;string | Promise | Loads a device with specific mnemonic and/or HD Node and/or xprv. *Do not use this if you don't need to; use recoverDevice*<br>Either mnemonic, node or payload have to be present. HDNode is an internal TREZOR structure, not bitcoin.js HD Node. |
Expand Down
Loading

0 comments on commit 613295d

Please sign in to comment.