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

Adding support for BTCZ #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions app/src/bitcoin/networks.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ bitcoin.networks.zcash =
pubKeyHash: 0x1CB8
scriptHash: 0x1CBD

bitcoin.networks.bitcoinz =
magicPrefix: '\x16BitcoinZ Signed Message:\n'
bip32:
public: 0x0488B21E,
private: 0x0488ADE4
pubKeyHash: 0x1CB8
scriptHash: 0x1CBD

bitcoin.networks.clubcoin =
magicPrefix: '\x19ClubCoin Signed Message:\n'
bip32:
Expand Down Expand Up @@ -570,6 +578,27 @@ ledger.bitcoin.Networks =
dust: 10000
handleFeePerByte: no

bitcoinz:
name: 'bitcoinz'
display_name: 'bitcoinz'
plural: 'bitcoinz'
scheme: 'bitcoinz:'
bolosAppName: 'BitcoinZ'
ticker: 'btcz'
tickerKey:
from: 'fromBTCZ'
to: 'toBTCZ'
bip44_coin_type: '147'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No sure this is the correct bip44 setting. I'll research more.

handleSegwit: no
isSegwitSupported: no
version:
regular: 0x1CB8
P2SH: 0x1CBD
XPUB: 0x0488B21E
bitcoinjs: bitcoin.networks.bitcoinz
dust: 10000
handleFeePerByte: no

clubcoin:
name: 'clubcoin'
display_name: 'clubcoin'
Expand Down
15 changes: 15 additions & 0 deletions app/src/preferences/defaults.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,21 @@ ledger.preferences.zcash =
address: 'https://explorer.zcha.in/transactions/%s'
discoveryGap: 20

ledger.preferences.bitcoinz =
Display:
units:
bitcoin:
symbol: 'BTCZ'
unit: 8

# Coin preferences
Coin:
explorers:
zchain:
name: 'BTCZ.rocks'
address: 'https://explorer.btcz.rocks/tx/%s'
discoveryGap: 20

ledger.preferences.dash =
Display:
units:
Expand Down