mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
all: add extra_data and timestamp fields to coin specification
This commit is contained in:
parent
136307bcae
commit
817b922850
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -47,5 +47,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -47,5 +47,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -47,5 +47,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -46,5 +46,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": true,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -42,5 +42,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,6 +38,8 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": {
|
||||
"address_prefix": 4,
|
||||
"blech32_prefix": "el"
|
||||
|
@ -42,5 +42,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -42,5 +42,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -45,5 +45,7 @@
|
||||
"3": 1537743641,
|
||||
"4": 1991772603
|
||||
},
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": true,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": true,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -38,5 +38,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -42,5 +42,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -42,5 +42,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -44,5 +44,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -45,5 +45,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -49,5 +49,7 @@
|
||||
"3": 1537743641,
|
||||
"4": 733220448
|
||||
},
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -45,5 +45,7 @@
|
||||
"3": 1537743641,
|
||||
"4": 733220448
|
||||
},
|
||||
"extra_data": true,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -43,5 +43,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -41,5 +41,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -40,5 +40,7 @@
|
||||
"negative_fee": false,
|
||||
"cooldown": 100,
|
||||
"consensus_branch_id": null,
|
||||
"extra_data": false,
|
||||
"timestamp": false,
|
||||
"confidential_assets": null
|
||||
}
|
||||
|
@ -30,6 +30,8 @@ class CoinInfo:
|
||||
decred: bool,
|
||||
negative_fee: bool,
|
||||
curve_name: str,
|
||||
extra_data: bool,
|
||||
timestamp: bool,
|
||||
confidential_assets: dict,
|
||||
):
|
||||
self.coin_name = coin_name
|
||||
@ -52,6 +54,8 @@ class CoinInfo:
|
||||
self.decred = decred
|
||||
self.negative_fee = negative_fee
|
||||
self.curve_name = curve_name
|
||||
self.extra_data = extra_data
|
||||
self.timestamp = timestamp
|
||||
self.confidential_assets = confidential_assets
|
||||
if curve_name == "secp256k1-groestl":
|
||||
self.b58_hash = groestl512d_32
|
||||
@ -102,6 +106,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Regtest":
|
||||
@ -126,6 +132,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Testnet":
|
||||
@ -150,6 +158,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
if not utils.BITCOIN_ONLY:
|
||||
@ -177,6 +187,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Axe":
|
||||
@ -201,6 +213,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bellcoin":
|
||||
@ -225,6 +239,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "BitZeny":
|
||||
@ -249,6 +265,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bcash":
|
||||
@ -273,6 +291,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bcash Testnet":
|
||||
@ -297,6 +317,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bgold":
|
||||
@ -321,6 +343,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bgold Testnet":
|
||||
@ -345,6 +369,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bprivate":
|
||||
@ -369,6 +395,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Brhodium":
|
||||
@ -393,6 +421,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Bitcore":
|
||||
@ -417,6 +447,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "CPUchain":
|
||||
@ -441,6 +473,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Capricoin":
|
||||
@ -465,6 +499,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=True,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Crown":
|
||||
@ -489,6 +525,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Dash":
|
||||
@ -513,6 +551,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=True,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Dash Testnet":
|
||||
@ -537,6 +577,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=True,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Decred":
|
||||
@ -561,6 +603,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=True,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1-decred',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Decred Testnet":
|
||||
@ -585,6 +629,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=True,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1-decred',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "DigiByte":
|
||||
@ -609,6 +655,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Dogecoin":
|
||||
@ -633,6 +681,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Elements":
|
||||
@ -657,6 +707,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets={'address_prefix': 4, 'blech32_prefix': 'el'},
|
||||
)
|
||||
elif name == "Feathercoin":
|
||||
@ -681,6 +733,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Florincoin":
|
||||
@ -705,6 +759,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Fujicoin":
|
||||
@ -729,6 +785,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Gincoin":
|
||||
@ -753,6 +811,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "GameCredits":
|
||||
@ -777,6 +837,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Groestlcoin":
|
||||
@ -801,6 +863,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1-groestl',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Groestlcoin Testnet":
|
||||
@ -825,6 +889,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1-groestl',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Hatch":
|
||||
@ -849,6 +915,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Hatch Testnet":
|
||||
@ -873,6 +941,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Horizen":
|
||||
@ -897,6 +967,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Komodo":
|
||||
@ -921,6 +993,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=True,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Koto":
|
||||
@ -945,6 +1019,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Litecoin":
|
||||
@ -969,6 +1045,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Litecoin Testnet":
|
||||
@ -993,6 +1071,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "MetaverseETP":
|
||||
@ -1017,6 +1097,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Monacoin":
|
||||
@ -1041,6 +1123,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "MonetaryUnit":
|
||||
@ -1065,6 +1149,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "NIX":
|
||||
@ -1089,6 +1175,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Namecoin":
|
||||
@ -1113,6 +1201,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "PIVX":
|
||||
@ -1137,6 +1227,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "PIVX Testnet":
|
||||
@ -1161,6 +1253,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Particl":
|
||||
@ -1185,6 +1279,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Particl Testnet":
|
||||
@ -1209,6 +1305,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Peercoin":
|
||||
@ -1233,6 +1331,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=True,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Peercoin Testnet":
|
||||
@ -1257,6 +1357,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=True,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Pesetacoin":
|
||||
@ -1281,6 +1383,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Polis":
|
||||
@ -1305,6 +1409,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Primecoin":
|
||||
@ -1329,6 +1435,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Qtum":
|
||||
@ -1353,6 +1461,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Qtum Testnet":
|
||||
@ -1377,6 +1487,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Ravencoin":
|
||||
@ -1401,6 +1513,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Ritocoin":
|
||||
@ -1425,6 +1539,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "SmartCash":
|
||||
@ -1449,6 +1565,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1-smart',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "SmartCash Testnet":
|
||||
@ -1473,6 +1591,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1-smart',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Stakenet":
|
||||
@ -1497,6 +1617,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Syscoin":
|
||||
@ -1521,6 +1643,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Unobtanium":
|
||||
@ -1545,6 +1669,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "VIPSTARCOIN":
|
||||
@ -1569,6 +1695,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Vertcoin":
|
||||
@ -1593,6 +1721,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Viacoin":
|
||||
@ -1617,6 +1747,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "ZCore":
|
||||
@ -1641,6 +1773,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Zcash":
|
||||
@ -1665,6 +1799,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=True,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Zcash Testnet":
|
||||
@ -1689,6 +1825,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=True,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Zcoin":
|
||||
@ -1713,6 +1851,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "Zcoin Testnet":
|
||||
@ -1737,6 +1877,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
elif name == "ZelCash":
|
||||
@ -1761,6 +1903,8 @@ def by_name(name: str) -> CoinInfo:
|
||||
decred=False,
|
||||
negative_fee=False,
|
||||
curve_name='secp256k1',
|
||||
extra_data=False,
|
||||
timestamp=False,
|
||||
confidential_assets=None,
|
||||
)
|
||||
raise ValueError('Unknown coin name "%s"' % name)
|
||||
|
@ -30,6 +30,8 @@ class CoinInfo:
|
||||
decred: bool,
|
||||
negative_fee: bool,
|
||||
curve_name: str,
|
||||
extra_data: bool,
|
||||
timestamp: bool,
|
||||
confidential_assets: dict,
|
||||
):
|
||||
self.coin_name = coin_name
|
||||
@ -52,6 +54,8 @@ class CoinInfo:
|
||||
self.decred = decred
|
||||
self.negative_fee = negative_fee
|
||||
self.curve_name = curve_name
|
||||
self.extra_data = extra_data
|
||||
self.timestamp = timestamp
|
||||
self.confidential_assets = confidential_assets
|
||||
if curve_name == "secp256k1-groestl":
|
||||
self.b58_hash = groestl512d_32
|
||||
@ -110,6 +114,8 @@ ATTRIBUTES = (
|
||||
("decred", bool),
|
||||
("negative_fee", bool),
|
||||
("curve_name", lambda r: repr(r.replace("_", "-"))),
|
||||
("extra_data", bool),
|
||||
("timestamp", bool),
|
||||
("confidential_assets", optional_dict),
|
||||
)
|
||||
|
||||
|
@ -46,6 +46,8 @@ const CoinInfo coins[COINS_COUNT] = {
|
||||
.negative_fee = ${c_bool(c.negative_fee)},
|
||||
.curve_name = ${c.curve_name.upper()}_NAME,
|
||||
.curve = &${c.curve_name}_info,
|
||||
.extra_data = ${c_bool(c.extra_data)},
|
||||
.timestamp = ${c_bool(c.timestamp)},
|
||||
},
|
||||
% endfor
|
||||
};
|
||||
|
@ -49,6 +49,8 @@ typedef struct _CoinInfo {
|
||||
bool negative_fee;
|
||||
const char *curve_name;
|
||||
const curve_info *curve;
|
||||
bool extra_data;
|
||||
bool timestamp;
|
||||
} CoinInfo;
|
||||
|
||||
#include "coin_info.h"
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user