You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: API.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,11 @@ Note that the lenght of the action is not tied to the actual device actions. You
152
152
| getEntropy | size: number | Promise<Response<br><{ bytes: string }>>>| random data |
153
153
| getAddress | path: Array<number><br>coin: string<br>display: boolean | Promise<Response<br><{ address: string }>>>| 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. |
154
154
| ethereumGetAddress | address_n: Array<number><br>display: ?boolean | Promise<Response<br><{ address: string, path: Array<number> }>>| Gets Ethereum address from a given path.<br>if `display` is true, the address is displayed on TREZOR and user has to confirm. |
155
+
| adaGetAddress | address_n: Array<number><br>show_display: ?boolean | Promise<MessageResponse<br><trezor.CardanoAddress>>| Gets Cardano address<br>if `show_display` is true, the address is displayed on TREZOR and user has to confirm. |
156
+
| getAdaPublicKey | address_n: Array<number>| Promise<MessageResponse<br><trezor.CardanoPublicKey>>| Gets Cardano public node and root hd passphrase from a given path. |
157
+
| verifyAdaMessage | publicKey: string<br>signature: string<br>message: string | Promise<MessageResponse<trezor.Success>>| Verifies Cardano message against public key and signature. |
158
+
| signAdaMessage | address_n: Array<number><br>message: string | Promise<MessageResponse<trezor.MessageSignature>>| Sign Cardano message with keys from given path. |
159
+
| signAdaTransaction | inputs: Array<trezor.CardanoTxInputType><br>outputs: Array<trezor.CardanoTxOutputType><br>transactions: Array<string>| Promise<MessageResponse<trezor.CardanoSignedTransaction>>| For provided inputs, outputs, raw transactions bodies will sign transaction |
155
160
| verifyAddress | path: Array<number><br>refAddress: string <br>coin: string | Promise<boolean>| 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. |
156
161
| getHDNode | path: Array<number><br>coin: string | Promise<HDNode>| 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.) |
157
162
| wipeDevice || Promise | Wipes the device (after user confirms). |
0 commit comments