1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

defs: introduce combine script, add more fields to coin definitions

This commit is contained in:
Pavol Rusnak 2018-04-23 16:57:59 +01:00
parent 9f1c77c1d7
commit 7dd3b37f66
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
29 changed files with 121 additions and 54 deletions

1
defs/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
coins.json

View File

@ -1,8 +1,10 @@
{
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"coin_name": "Bcash",
"coin_shortcut": "BCH",
"coin_label": "Bitcoin Cash",
"website": "",
"github": "",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"curve_name": "secp256k1",
"address_type": 0,
"address_type_p2sh": 5,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": "bitcoincash",
"bip44": 145,
"slip44": 145,
"segwit": false,
"decred": false,
"forkid": 0,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"coin_name": "Bcash Testnet",
"coin_shortcut": "TBCH",
"coin_label": "Bitcoin Cash Testnet",
"website": "",
"github": "",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"curve_name": "secp256k1",
"address_type": 111,
"address_type_p2sh": 196,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": "bchtest",
"bip44": 1,
"slip44": 1,
"segwit": false,
"decred": false,
"forkid": 0,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Saleem Rashid <trezor@saleemrashid.com>",
"coin_name": "Bgold",
"coin_shortcut": "BTG",
"coin_label": "Bitcoin Gold",
"website": "",
"github": "",
"maintainer": "Saleem Rashid <trezor@saleemrashid.com>",
"curve_name": "secp256k1",
"address_type": 38,
"address_type_p2sh": 23,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "btg",
"cashaddr_prefix": null,
"bip44": 156,
"slip44": 156,
"segwit": true,
"decred": false,
"forkid": 79,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Bitcoin",
"coin_shortcut": "BTC",
"coin_label": "Bitcoin",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 0,
"address_type_p2sh": 5,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "bc",
"cashaddr_prefix": null,
"bip44": 0,
"slip44": 0,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Testnet",
"coin_shortcut": "TEST",
"coin_label": "Testnet",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 111,
"address_type_p2sh": 196,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "044a5262",
"bech32_prefix": "tb",
"cashaddr_prefix": null,
"bip44": 1,
"slip44": 1,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Chris Sulmone <csulmone@gmail.com>",
"coin_name": "Bprivate",
"coin_shortcut": "BTCP",
"coin_label": "Bitcoin Private",
"website": "",
"github": "",
"maintainer": "Chris Sulmone <csulmone@gmail.com>",
"curve_name": "secp256k1",
"address_type": 4901,
"address_type_p2sh": 5039,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 183,
"slip44": 183,
"segwit": false,
"decred": false,
"forkid": 42,

View File

@ -2,6 +2,9 @@
"coin_name": "Crown",
"coin_shortcut": "CRW",
"coin_label": "Crown",
"website": "",
"github": "",
"maintainer": "hypermist <hypermist@crown.tech>",
"curve_name": "secp256k1",
"address_type": 0,
"address_type_p2sh": 28,
@ -13,7 +16,8 @@
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"bip44": 72,
"cashaddr_prefix": null,
"slip44": 72,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"coin_name": "Dash",
"coin_shortcut": "DASH",
"coin_label": "Dash",
"website": "",
"github": "",
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 76,
"address_type_p2sh": 16,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 5,
"slip44": 5,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"coin_name": "Dash Testnet",
"coin_shortcut": "tDASH",
"coin_label": "Dash Testnet",
"website": "",
"github": "",
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 140,
"address_type_p2sh": 19,
@ -14,8 +16,10 @@
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"bip44": 1,
"cashaddr_prefix": null,
"slip44": 1,
"segwit": false,
"decred": false,
"forkid": null,
"force_bip143": false,
"default_fee_b": {

View File

@ -1,8 +1,10 @@
{
"maintainer": "Saleem Rashid <trezor@saleemrashid.com>",
"coin_name": "Decred Testnet",
"coin_shortcut": "TDCR",
"coin_label": "Testnet",
"coin_label": "Decred Testnet",
"website": "",
"github": "",
"maintainer": "Saleem Rashid <trezor@saleemrashid.com>",
"curve_name": "secp256k1_decred",
"address_type": 3873,
"address_type_p2sh": 3836,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 1,
"slip44": 1,
"segwit": false,
"decred": true,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "carsenk <carsenk@gmail.com>",
"coin_name": "Denarius",
"coin_shortcut": "DNR",
"coin_label": "Denarius",
"website": "",
"github": "",
"maintainer": "carsenk <carsenk@gmail.com>",
"curve_name": "secp256k1",
"address_type": 30,
"address_type_p2sh": 90,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 116,
"slip44": 116,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "DigiByte <dev@digibyte.co>",
"coin_name": "DigiByte",
"coin_shortcut": "DGB",
"coin_label": "DigiByte",
"website": "",
"github": "",
"maintainer": "DigiByte <dev@digibyte.co>",
"curve_name": "secp256k1",
"address_type": 30,
"address_type_p2sh": 63,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "dgb",
"cashaddr_prefix": null,
"bip44": 20,
"slip44": 20,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"coin_name": "Dogecoin",
"coin_shortcut": "DOGE",
"coin_label": "Dogecoin",
"website": "",
"github": "",
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 30,
"address_type_p2sh": 22,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 3,
"slip44": 3,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -2,6 +2,9 @@
"coin_name": "Flashcoin",
"coin_shortcut": "FLASH",
"coin_label": "Flashcoin",
"website": "",
"github": "",
"maintainer": "flashbountyhunter <flashbountyhunter@protonmail.com>",
"curve_name": "secp256k1",
"address_type": 68,
"address_type_p2sh": 130,
@ -14,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 120,
"slip44": 120,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "motty <admin@fujicoin.org>",
"coin_name": "Fujicoin",
"coin_shortcut": "FJC",
"coin_label": "Fujicoin",
"website": "",
"github": "",
"maintainer": "motty <admin@fujicoin.org>",
"curve_name": "secp256k1",
"address_type": 36,
"address_type_p2sh": 16,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "fc",
"cashaddr_prefix": null,
"bip44": 75,
"slip44": 75,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"coin_name": "Groestlcoin",
"coin_shortcut": "GRS",
"coin_label": "Groestlcoin",
"website": "",
"github": "",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1_groestl",
"address_type": 36,
"address_type_p2sh": 5,
@ -14,7 +16,8 @@
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "grs",
"bip44": 17,
"cashaddr_prefix": null,
"slip44": 17,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Litecoin",
"coin_shortcut": "LTC",
"coin_label": "Litecoin",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 48,
"address_type_p2sh": 50,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "01b26ef6",
"bech32_prefix": "ltc",
"cashaddr_prefix": null,
"bip44": 2,
"slip44": 2,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Litecoin Testnet",
"coin_shortcut": "TLTC",
"coin_label": "Litecoin Testnet",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 111,
"address_type_p2sh": 58,
@ -14,7 +16,8 @@
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": "tltc",
"bip44": 1,
"cashaddr_prefix": null,
"slip44": 1,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "cryptcoin-junkey <cryptcoin.junkey@gmail.com>",
"coin_name": "Monacoin",
"coin_shortcut": "MONA",
"coin_label": "Monacoin",
"website": "",
"github": "",
"maintainer": "cryptcoin-junkey <cryptcoin.junkey@gmail.com>",
"curve_name": "secp256k1",
"address_type": 50,
"address_type_p2sh": 55,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "mona",
"cashaddr_prefix": null,
"bip44": 22,
"slip44": 22,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -3,6 +3,9 @@
"coin_shortcut": "XMY",
"coin_label": "Myriad",
"curve_name": "secp256k1",
"website": "",
"github": "",
"maintainer": "Adam Hickerson <a@hi.ckerson.com>",
"address_type": 50,
"address_type_p2sh": 9,
"maxfee_kb": 2000000,
@ -13,7 +16,8 @@
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"bip44": 90,
"cashaddr_prefix": null,
"slip44": 90,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Namecoin",
"coin_shortcut": "NMC",
"coin_label": "Namecoin",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 52,
"address_type_p2sh": 5,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 7,
"slip44": 7,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Justin F. Hallett <thesin@users.sf.net>",
"coin_name": "Terracoin",
"coin_shortcut": "TRC",
"coin_label": "Terracoin",
"website": "",
"github": "",
"maintainer": "Justin F. Hallett <thesin@users.sf.net>",
"curve_name": "secp256k1",
"address_type": 0,
"address_type_p2sh": 5,
@ -14,7 +16,8 @@
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"bip44": 0,
"cashaddr_prefix": null,
"slip44": 0,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"coin_name": "Vertcoin",
"coin_shortcut": "VTC",
"coin_label": "Vertcoin",
"website": "",
"github": "",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"curve_name": "secp256k1",
"address_type": 71,
"address_type_p2sh": 5,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "vtc",
"cashaddr_prefix": null,
"bip44": 28,
"slip44": 28,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "romanornr <romanornr@gmail.com>",
"coin_name": "viacoin",
"coin_shortcut": "VIA",
"coin_label": "viacoin",
"website": "",
"github": "",
"maintainer": "romanornr <romanornr@gmail.com>",
"curve_name": "secp256k1",
"address_type": 71,
"address_type_p2sh": 33,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": "049d7cb2",
"bech32_prefix": "via",
"cashaddr_prefix": null,
"bip44": 14,
"slip44": 14,
"segwit": true,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Zcash",
"coin_shortcut": "ZEC",
"coin_label": "Zcash",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 7352,
"address_type_p2sh": 7357,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 133,
"slip44": 133,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"coin_name": "Zcash Testnet",
"coin_shortcut": "TAZ",
"coin_label": "Zcash Testnet",
"website": "",
"github": "",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"address_type": 7461,
"address_type_p2sh": 7354,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 1,
"slip44": 1,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"coin_name": "Zcoin",
"coin_shortcut": "XZC",
"coin_label": "Zcoin",
"website": "",
"github": "",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1",
"address_type": 82,
"address_type_p2sh": 7,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 136,
"slip44": 136,
"segwit": false,
"decred": false,
"forkid": null,

View File

@ -1,8 +1,10 @@
{
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"coin_name": "Zcoin Testnet",
"coin_shortcut": "tXZC",
"coin_label": "Zcoin Testnet",
"website": "",
"github": "",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1",
"address_type": 65,
"address_type_p2sh": 178,
@ -15,7 +17,7 @@
"xpub_magic_segwit_p2sh": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"bip44": 1,
"slip44": 1,
"segwit": false,
"decred": false,
"forkid": null,