trustwallet / wallet-core

Cross-platform, cross-blockchain wallet library.
https://developer.trustwallet.com/wallet-core
Apache License 2.0
2.85k stars 1.6k forks source link

Add support for Cardano #745

Closed optout21 closed 4 years ago

optout21 commented 4 years ago

Description

Name: Cardano (ADA) https://www.cardano.org HD Derivation Scheme: BIP44 m/44/1815 Symbol: ADA Documentation: https://github.com/vacuumlabs/cardano-crypto.js https://github.com/vacuumlabs/adalite https://daedaluswallet.io/ Reason: https://twitter.com/TrustWalletApp/status/1199434970072322049

Checklist

Finish check list here.

hewigovens commented 4 years ago

you might need this: https://gist.github.com/hewigovens/f8d168b8d337292e0c12040c6dfaeb0f

Gist
Cardano Research
Cardano Research. GitHub Gist: instantly share code, notes, and snippets.
hewigovens commented 4 years ago

https://github.com/Atomicwallet/cardano-crypto.js

GitHub
Atomicwallet/cardano-crypto.js
Cardano cryptography from the official cardano-crypto transpiled to js with emscripten - Atomicwallet/cardano-crypto.js
optout21 commented 4 years ago

For address derivation, you may. try: in walletconsole:

You can try this in adalite also:

AdaLite
AdaLite - Cardano Wallet
Free open-source web-browser Cardano wallet with Trezor and Ledger Nano S and Nano X support
optout21 commented 4 years ago

Address part merged, signing part is still WIP #797 .

optout21 commented 4 years ago

To test tx creation:

curl -d '{"txHash":"ebf58670ee1512d597876fe632e92790bd70568374bdbe5a69c5d8ed107607ee","txBody":"82839f8200d8185824825820a49bad3f69bbab0e4d3e51991ce7a1116c0fd322a7731246b92df455e67e686100ff9f8282d818582183581c0f1fdc075b3e562ff4c8dc6979b136aeedd087a7d3bf554f774b58eba0001abb7c9a121a007a12008282d818582183581c20b55a0bd5cbc39b58cdd8977e863aca7d387a5a0fc37a473eb72042a0001aa6fa2f8a1a001bece4ffa0818200d8185885825840835610e371e632d829eb63bf44ec39d0487c19d4d98b8dce9dd88d88414ce5bb1ae60957699bf72b212ca823520cf7d86af5d1304cd90248fe60bd1fe442870f584045b3fe46b52c839566e697cbe72e248cd0f01e10c7c5696c8f202fe9776602b63c5878f0e27869d1d9ff69c9773211406970742f7cc316690b9d9133794e4f0e"}' -H "Content-Type: application/json" https://adalite.io/api/txs/submit
Cardano Blockchain Explorer
optout21 commented 4 years ago

RPC API info:

Get Balance and Transactions, UTXOs

curl https://cardanoexplorer.com/api/addresses/summary/ADDRESS

ex.: curl https://cardanoexplorer.com/api/addresses/summary/Ae2tdPwUPEZLmY8zETphpoDsrE7pDv3PpufADh5bS41Xqajrgzm3MhJdgmw

curl -d '["Ae2tdPwUPEZLmY8zETphpoDsrE7pDv3PpufADh5bS41Xqajrgzm3MhJdgmw"]' -H "Content-Type: application/json" https://explorer2.adalite.io/api/bulk/addresses/utxo

Submit prepared raw TX

curl -d '{"txHash":"11dc0c05383cd905d512a3f9ba5ae8e2affce41e2a33600140a00d44a2d842e5","txBody":"8283 ... 930b"}' -H "Content-Type: application/json" https://adalite.io/api/txs/submit

Documentation:

https://cardanodocs.com/technical/wallet/api/

optout21 commented 4 years ago

A note on multi-input transactions: