1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

all: add extra_data and timestamp fields to coin specification

This commit is contained in:
Pavol Rusnak 2020-03-09 21:23:27 +00:00 committed by Tomas Susanka
parent 136307bcae
commit 817b922850
76 changed files with 297 additions and 1 deletions

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -47,5 +47,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -47,5 +47,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -47,5 +47,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -46,5 +46,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": true,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -42,5 +42,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": true,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": true,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,6 +38,8 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": { "confidential_assets": {
"address_prefix": 4, "address_prefix": 4,
"blech32_prefix": "el" "blech32_prefix": "el"

View File

@ -42,5 +42,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -42,5 +42,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -45,5 +45,7 @@
"3": 1537743641, "3": 1537743641,
"4": 1991772603 "4": 1991772603
}, },
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": true,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": true,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -38,5 +38,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -42,5 +42,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -42,5 +42,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -44,5 +44,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -45,5 +45,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -49,5 +49,7 @@
"3": 1537743641, "3": 1537743641,
"4": 733220448 "4": 733220448
}, },
"extra_data": true,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -45,5 +45,7 @@
"3": 1537743641, "3": 1537743641,
"4": 733220448 "4": 733220448
}, },
"extra_data": true,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -43,5 +43,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -41,5 +41,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -40,5 +40,7 @@
"negative_fee": false, "negative_fee": false,
"cooldown": 100, "cooldown": 100,
"consensus_branch_id": null, "consensus_branch_id": null,
"extra_data": false,
"timestamp": false,
"confidential_assets": null "confidential_assets": null
} }

View File

@ -30,6 +30,8 @@ class CoinInfo:
decred: bool, decred: bool,
negative_fee: bool, negative_fee: bool,
curve_name: str, curve_name: str,
extra_data: bool,
timestamp: bool,
confidential_assets: dict, confidential_assets: dict,
): ):
self.coin_name = coin_name self.coin_name = coin_name
@ -52,6 +54,8 @@ class CoinInfo:
self.decred = decred self.decred = decred
self.negative_fee = negative_fee self.negative_fee = negative_fee
self.curve_name = curve_name self.curve_name = curve_name
self.extra_data = extra_data
self.timestamp = timestamp
self.confidential_assets = confidential_assets self.confidential_assets = confidential_assets
if curve_name == "secp256k1-groestl": if curve_name == "secp256k1-groestl":
self.b58_hash = groestl512d_32 self.b58_hash = groestl512d_32
@ -102,6 +106,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Regtest": elif name == "Regtest":
@ -126,6 +132,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Testnet": elif name == "Testnet":
@ -150,6 +158,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
if not utils.BITCOIN_ONLY: if not utils.BITCOIN_ONLY:
@ -177,6 +187,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Axe": elif name == "Axe":
@ -201,6 +213,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bellcoin": elif name == "Bellcoin":
@ -225,6 +239,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "BitZeny": elif name == "BitZeny":
@ -249,6 +265,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bcash": elif name == "Bcash":
@ -273,6 +291,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bcash Testnet": elif name == "Bcash Testnet":
@ -297,6 +317,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bgold": elif name == "Bgold":
@ -321,6 +343,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bgold Testnet": elif name == "Bgold Testnet":
@ -345,6 +369,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bprivate": elif name == "Bprivate":
@ -369,6 +395,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Brhodium": elif name == "Brhodium":
@ -393,6 +421,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Bitcore": elif name == "Bitcore":
@ -417,6 +447,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "CPUchain": elif name == "CPUchain":
@ -441,6 +473,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Capricoin": elif name == "Capricoin":
@ -465,6 +499,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=True,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Crown": elif name == "Crown":
@ -489,6 +525,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Dash": elif name == "Dash":
@ -513,6 +551,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=True,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Dash Testnet": elif name == "Dash Testnet":
@ -537,6 +577,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=True,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Decred": elif name == "Decred":
@ -561,6 +603,8 @@ def by_name(name: str) -> CoinInfo:
decred=True, decred=True,
negative_fee=False, negative_fee=False,
curve_name='secp256k1-decred', curve_name='secp256k1-decred',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Decred Testnet": elif name == "Decred Testnet":
@ -585,6 +629,8 @@ def by_name(name: str) -> CoinInfo:
decred=True, decred=True,
negative_fee=False, negative_fee=False,
curve_name='secp256k1-decred', curve_name='secp256k1-decred',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "DigiByte": elif name == "DigiByte":
@ -609,6 +655,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Dogecoin": elif name == "Dogecoin":
@ -633,6 +681,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Elements": elif name == "Elements":
@ -657,6 +707,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets={'address_prefix': 4, 'blech32_prefix': 'el'}, confidential_assets={'address_prefix': 4, 'blech32_prefix': 'el'},
) )
elif name == "Feathercoin": elif name == "Feathercoin":
@ -681,6 +733,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Florincoin": elif name == "Florincoin":
@ -705,6 +759,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Fujicoin": elif name == "Fujicoin":
@ -729,6 +785,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Gincoin": elif name == "Gincoin":
@ -753,6 +811,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "GameCredits": elif name == "GameCredits":
@ -777,6 +837,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Groestlcoin": elif name == "Groestlcoin":
@ -801,6 +863,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1-groestl', curve_name='secp256k1-groestl',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Groestlcoin Testnet": elif name == "Groestlcoin Testnet":
@ -825,6 +889,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1-groestl', curve_name='secp256k1-groestl',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Hatch": elif name == "Hatch":
@ -849,6 +915,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Hatch Testnet": elif name == "Hatch Testnet":
@ -873,6 +941,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Horizen": elif name == "Horizen":
@ -897,6 +967,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Komodo": elif name == "Komodo":
@ -921,6 +993,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=True, negative_fee=True,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Koto": elif name == "Koto":
@ -945,6 +1019,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Litecoin": elif name == "Litecoin":
@ -969,6 +1045,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Litecoin Testnet": elif name == "Litecoin Testnet":
@ -993,6 +1071,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "MetaverseETP": elif name == "MetaverseETP":
@ -1017,6 +1097,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Monacoin": elif name == "Monacoin":
@ -1041,6 +1123,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "MonetaryUnit": elif name == "MonetaryUnit":
@ -1065,6 +1149,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "NIX": elif name == "NIX":
@ -1089,6 +1175,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Namecoin": elif name == "Namecoin":
@ -1113,6 +1201,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "PIVX": elif name == "PIVX":
@ -1137,6 +1227,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "PIVX Testnet": elif name == "PIVX Testnet":
@ -1161,6 +1253,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Particl": elif name == "Particl":
@ -1185,6 +1279,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Particl Testnet": elif name == "Particl Testnet":
@ -1209,6 +1305,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Peercoin": elif name == "Peercoin":
@ -1233,6 +1331,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=True,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Peercoin Testnet": elif name == "Peercoin Testnet":
@ -1257,6 +1357,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=True,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Pesetacoin": elif name == "Pesetacoin":
@ -1281,6 +1383,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Polis": elif name == "Polis":
@ -1305,6 +1409,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Primecoin": elif name == "Primecoin":
@ -1329,6 +1435,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Qtum": elif name == "Qtum":
@ -1353,6 +1461,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Qtum Testnet": elif name == "Qtum Testnet":
@ -1377,6 +1487,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Ravencoin": elif name == "Ravencoin":
@ -1401,6 +1513,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Ritocoin": elif name == "Ritocoin":
@ -1425,6 +1539,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "SmartCash": elif name == "SmartCash":
@ -1449,6 +1565,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1-smart', curve_name='secp256k1-smart',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "SmartCash Testnet": elif name == "SmartCash Testnet":
@ -1473,6 +1591,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1-smart', curve_name='secp256k1-smart',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Stakenet": elif name == "Stakenet":
@ -1497,6 +1617,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Syscoin": elif name == "Syscoin":
@ -1521,6 +1643,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Unobtanium": elif name == "Unobtanium":
@ -1545,6 +1669,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "VIPSTARCOIN": elif name == "VIPSTARCOIN":
@ -1569,6 +1695,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Vertcoin": elif name == "Vertcoin":
@ -1593,6 +1721,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Viacoin": elif name == "Viacoin":
@ -1617,6 +1747,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "ZCore": elif name == "ZCore":
@ -1641,6 +1773,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Zcash": elif name == "Zcash":
@ -1665,6 +1799,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=True,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Zcash Testnet": elif name == "Zcash Testnet":
@ -1689,6 +1825,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=True,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Zcoin": elif name == "Zcoin":
@ -1713,6 +1851,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "Zcoin Testnet": elif name == "Zcoin Testnet":
@ -1737,6 +1877,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
elif name == "ZelCash": elif name == "ZelCash":
@ -1761,6 +1903,8 @@ def by_name(name: str) -> CoinInfo:
decred=False, decred=False,
negative_fee=False, negative_fee=False,
curve_name='secp256k1', curve_name='secp256k1',
extra_data=False,
timestamp=False,
confidential_assets=None, confidential_assets=None,
) )
raise ValueError('Unknown coin name "%s"' % name) raise ValueError('Unknown coin name "%s"' % name)

View File

@ -30,6 +30,8 @@ class CoinInfo:
decred: bool, decred: bool,
negative_fee: bool, negative_fee: bool,
curve_name: str, curve_name: str,
extra_data: bool,
timestamp: bool,
confidential_assets: dict, confidential_assets: dict,
): ):
self.coin_name = coin_name self.coin_name = coin_name
@ -52,6 +54,8 @@ class CoinInfo:
self.decred = decred self.decred = decred
self.negative_fee = negative_fee self.negative_fee = negative_fee
self.curve_name = curve_name self.curve_name = curve_name
self.extra_data = extra_data
self.timestamp = timestamp
self.confidential_assets = confidential_assets self.confidential_assets = confidential_assets
if curve_name == "secp256k1-groestl": if curve_name == "secp256k1-groestl":
self.b58_hash = groestl512d_32 self.b58_hash = groestl512d_32
@ -110,6 +114,8 @@ ATTRIBUTES = (
("decred", bool), ("decred", bool),
("negative_fee", bool), ("negative_fee", bool),
("curve_name", lambda r: repr(r.replace("_", "-"))), ("curve_name", lambda r: repr(r.replace("_", "-"))),
("extra_data", bool),
("timestamp", bool),
("confidential_assets", optional_dict), ("confidential_assets", optional_dict),
) )

View File

@ -46,6 +46,8 @@ const CoinInfo coins[COINS_COUNT] = {
.negative_fee = ${c_bool(c.negative_fee)}, .negative_fee = ${c_bool(c.negative_fee)},
.curve_name = ${c.curve_name.upper()}_NAME, .curve_name = ${c.curve_name.upper()}_NAME,
.curve = &${c.curve_name}_info, .curve = &${c.curve_name}_info,
.extra_data = ${c_bool(c.extra_data)},
.timestamp = ${c_bool(c.timestamp)},
}, },
% endfor % endfor
}; };

View File

@ -49,6 +49,8 @@ typedef struct _CoinInfo {
bool negative_fee; bool negative_fee;
const char *curve_name; const char *curve_name;
const curve_info *curve; const curve_info *curve;
bool extra_data;
bool timestamp;
} CoinInfo; } CoinInfo;
#include "coin_info.h" #include "coin_info.h"

File diff suppressed because one or more lines are too long