From caef8c815bce258b18aac6d43661e5fd79655704 Mon Sep 17 00:00:00 2001 From: sidhujag Date: Fri, 18 May 2018 15:16:55 -0700 Subject: [PATCH 1/2] Add Syscoin support --- README.md | 1 + app/src/bitcoin/networks.coffee | 29 +++++++++++++++++++++++++++++ app/src/preferences/defaults.coffee | 18 ++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/README.md b/README.md index 8ea64b37..4b50f9a9 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ You can build the chrome application for other coins. Run `gulp clean build pack - dogecoin - dogecoin_test - zencash + - syscoin Note: that the API is only available for bitcoin and testnet right now. diff --git a/app/src/bitcoin/networks.coffee b/app/src/bitcoin/networks.coffee index 99bb1f9c..f755ebe9 100644 --- a/app/src/bitcoin/networks.coffee +++ b/app/src/bitcoin/networks.coffee @@ -126,6 +126,14 @@ bitcoin.networks.digibyte = pubKeyHash: 30 scriptHash: 5 +bitcoin.networks.syscoin = + magicPrefix: '\x19Syscoin Signed Message:\n' + bip32: + public: 0x0488b21e, + private: 0x0488ADE4 + pubKeyHash: 63 + scriptHash: 5 + ledger.bitcoin ||= {} ledger.bitcoin.Networks = bitcoin: @@ -904,3 +912,24 @@ ledger.bitcoin.Networks = dust: 10000 handleFeePerByte: no areTransactionTimestamped: no + + syscoin: + name: 'syscoin' + display_name: 'syscoin' + plural: 'syscoins' + scheme: 'syscoin:' + bolosAppName: 'syscoin' + ticker: 'sys' + tickerKey: + from: 'fromSYS' + to: 'toSYS' + bip44_coin_type: '57' + isSegwitSupported: no + version: + regular: 63 + P2SH: 5 + XPUB: 0x0488b21E + bitcoinjs: bitcoin.networks.syscoin + dust: 5430 + handleFeePerByte: no + areTransactionTimestamped: no \ No newline at end of file diff --git a/app/src/preferences/defaults.coffee b/app/src/preferences/defaults.coffee index c5b2c815..3420123c 100644 --- a/app/src/preferences/defaults.coffee +++ b/app/src/preferences/defaults.coffee @@ -732,4 +732,22 @@ ledger.preferences.digibyte = address: 'https://digiexplorer.info/tx/%s' discoveryGap: 20 +ledger.preferences.syscoin = + Display: + units: + bitcoin: + symbol: 'SYS' + unit: 8 + milibitcoin: + symbol: 'mSYS' + unit: 5 + +# Coin preferences + Coin: + explorers: + qtuminfo: + name: 'CryptoID' + address: 'https://chainz.cryptoid.info/sys/tx.dws?%s.htm' + discoveryGap: 20 + ledger.preferences.common.setCoin("bitcoin") From 86aa5bb92be5c91745e270179369213444ecaa2a Mon Sep 17 00:00:00 2001 From: sidhujag Date: Fri, 18 May 2018 15:54:07 -0700 Subject: [PATCH 2/2] update hex case --- app/src/bitcoin/networks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/bitcoin/networks.coffee b/app/src/bitcoin/networks.coffee index f755ebe9..bce95ed2 100644 --- a/app/src/bitcoin/networks.coffee +++ b/app/src/bitcoin/networks.coffee @@ -129,7 +129,7 @@ bitcoin.networks.digibyte = bitcoin.networks.syscoin = magicPrefix: '\x19Syscoin Signed Message:\n' bip32: - public: 0x0488b21e, + public: 0x0488B21E, private: 0x0488ADE4 pubKeyHash: 63 scriptHash: 5