1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 12:08:59 +00:00

defs: add coins images

This commit is contained in:
Pavol Rusnak 2018-04-25 19:12:42 +01:00
parent 5ccdb5b3f8
commit d75bf98c15
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
38 changed files with 46 additions and 12 deletions

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": "bitcoincash",
"slip44": 145,

BIN
defs/coins/bcash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": "bchtest",
"slip44": 1,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "btg",
"cashaddr_prefix": null,
"slip44": 156,

BIN
defs/coins/bgold.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": "04b24746",
"bech32_prefix": "bc",
"cashaddr_prefix": null,
"slip44": 0,

BIN
defs/coins/bitcoin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": "044a5262",
"xpub_magic_segwit_native": null,
"bech32_prefix": "tb",
"cashaddr_prefix": null,
"slip44": 1,

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "bc",
"cashaddr_prefix": null,
"slip44": 0,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 183,

View File

@ -51,9 +51,13 @@ def validate_coin(coin):
assert check_type(coin['xprv_magic'], str, regex=r'^[0-9a-f]{8}$')
assert check_type(coin['xpub_magic'], str, regex=r'^[0-9a-f]{8}$')
assert check_type(coin['xpub_magic_segwit_p2sh'], str, regex=r'^[0-9a-f]{8}$', nullable=True)
assert check_type(coin['xpub_magic_segwit_native'], str, regex=r'^[0-9a-f]{8}$', nullable=True)
assert coin['xprv_magic'] != coin['xpub_magic']
assert coin['xprv_magic'] != coin['xpub_magic_segwit_p2sh']
assert coin['xprv_magic'] != coin['xpub_magic_segwit_native']
assert coin['xpub_magic'] != coin['xpub_magic_segwit_p2sh']
assert coin['xpub_magic'] != coin['xpub_magic_segwit_native']
assert coin['xpub_magic_segwit_p2sh'] is None or coin['xpub_magic_segwit_native'] is None or coin['xpub_magic_segwit_p2sh'] != coin['xpub_magic_segwit_native']
assert check_type(coin['slip44'], int)
assert check_type(coin['segwit'], bool)
assert check_type(coin['decred'], bool)

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 72,

View File

@ -15,6 +15,7 @@
"xprv_magic": "02fe52f8",
"xpub_magic": "02fe52cc",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 5,

BIN
defs/coins/dash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 1,

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358397",
"xpub_magic": "043587d1",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 1,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 116,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "dgb",
"cashaddr_prefix": null,
"slip44": 20,

View File

@ -15,6 +15,7 @@
"xprv_magic": "02fac398",
"xpub_magic": "02facafd",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 3,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 120,

View File

@ -15,6 +15,7 @@
"xpub_magic": "0488b21e",
"xprv_magic": "0488ade4",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "fc",
"cashaddr_prefix": null,
"slip44": 75,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "grs",
"cashaddr_prefix": null,
"slip44": 17,

View File

@ -15,6 +15,7 @@
"xprv_magic": "019d9cfe",
"xpub_magic": "019da462",
"xpub_magic_segwit_p2sh": "01b26ef6",
"xpub_magic_segwit_native": null,
"bech32_prefix": "ltc",
"cashaddr_prefix": null,
"slip44": 2,

BIN
defs/coins/litecoin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": "tltc",
"cashaddr_prefix": null,
"slip44": 1,

View File

@ -15,6 +15,7 @@
"xpub_magic": "0488b21e",
"xprv_magic": "0488ade4",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "mona",
"cashaddr_prefix": null,
"slip44": 22,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 90,

View File

@ -15,6 +15,7 @@
"xprv_magic": "019d9cfe",
"xpub_magic": "019da462",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 7,

View File

@ -13,16 +13,17 @@ message CoinDef {
optional uint32 xprv_magic = 11;
optional uint32 xpub_magic = 12;
optional uint32 xpub_magic_segwit_p2sh = 13;
optional string bech32_prefix = 14;
optional string cashaddr_prefix = 15;
optional uint32 slip44 = 16;
optional bool segwit = 17;
optional bool decred = 18;
optional uint32 fork_id = 19;
optional bool force_bip143 = 20;
optional uint64 dust_limit = 21;
optional float blocktime_minute = 22;
optional string address_prefix = 23;
optional uint32 min_address_length = 24;
optional uint32 max_address_length = 25;
optional uint32 xpub_magic_segwit_native = 14;
optional string bech32_prefix = 15;
optional string cashaddr_prefix = 16;
optional uint32 slip44 = 17;
optional bool segwit = 18;
optional bool decred = 19;
optional uint32 fork_id = 20;
optional bool force_bip143 = 21;
optional uint64 dust_limit = 22;
optional uint32 blocktime_seconds = 23;
optional string address_prefix = 24;
optional uint32 min_address_length = 25;
optional uint32 max_address_length = 26;
}

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 0,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "vtc",
"cashaddr_prefix": null,
"slip44": 28,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": "049d7cb2",
"xpub_magic_segwit_native": null,
"bech32_prefix": "via",
"cashaddr_prefix": null,
"slip44": 14,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 133,

BIN
defs/coins/zcash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 1,

View File

@ -15,6 +15,7 @@
"xprv_magic": "0488ade4",
"xpub_magic": "0488b21e",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 136,

View File

@ -15,6 +15,7 @@
"xprv_magic": "04358394",
"xpub_magic": "043587cf",
"xpub_magic_segwit_p2sh": null,
"xpub_magic_segwit_native": null,
"bech32_prefix": null,
"cashaddr_prefix": null,
"slip44": 1,