diff --git a/common/defs/bitcoin/brhodium.png b/common/defs/bitcoin/brhodium.png deleted file mode 100644 index d74f8f687..000000000 Binary files a/common/defs/bitcoin/brhodium.png and /dev/null differ diff --git a/common/defs/bitcoin/brhodium.json b/common/defs/bitcoin/xrhodium.json similarity index 91% rename from common/defs/bitcoin/brhodium.json rename to common/defs/bitcoin/xrhodium.json index ccfa05036..f171e78ea 100644 --- a/common/defs/bitcoin/brhodium.json +++ b/common/defs/bitcoin/xrhodium.json @@ -1,8 +1,8 @@ { "coin_name": "Brhodium", "coin_shortcut": "XRC", - "coin_label": "Bitcoin Rhodium", - "website": "https://www.bitcoinrh.org", + "coin_label": "xRhodium", + "website": "https://xrhodium.org", "github": "https://gitlab.com/bitcoinrh/BRhodiumNode", "maintainer": "baff5b ", "curve_name": "secp256k1", @@ -35,7 +35,7 @@ }, "dust_limit": 546, "blocktime_seconds": 600, - "uri_prefix": "bitcoin-rhodium", + "uri_prefix": "xrhodium", "min_address_length": 27, "max_address_length": 34, "negative_fee": false, diff --git a/common/defs/bitcoin/xrhodium.png b/common/defs/bitcoin/xrhodium.png new file mode 100644 index 000000000..7202aa02a Binary files /dev/null and b/common/defs/bitcoin/xrhodium.png differ diff --git a/common/tools/coin_info.py b/common/tools/coin_info.py index 194c54e94..48cef357a 100755 --- a/common/tools/coin_info.py +++ b/common/tools/coin_info.py @@ -112,7 +112,7 @@ def check_key(key, types, optional=False, **kwargs): BTC_CHECKS = [ check_key("coin_name", str, regex=r"^[A-Z]"), check_key("coin_shortcut", str, regex=r"^t?[A-Z]{3,}$"), - check_key("coin_label", str, regex=r"^[A-Z]"), + check_key("coin_label", str, regex=r"^x?[A-Z]"), check_key("website", str, regex=r"^https://.*[^/]$"), check_key("github", str, regex=r"^https://git(hu|la)b.com/.*[^/]$"), check_key("maintainer", str), diff --git a/core/src/apps/common/coininfo.py b/core/src/apps/common/coininfo.py index ab3766143..74f53ffae 100644 --- a/core/src/apps/common/coininfo.py +++ b/core/src/apps/common/coininfo.py @@ -444,35 +444,6 @@ def by_name(name: str) -> CoinInfo: overwintered=False, confidential_assets=None, ) - elif name == "Brhodium": - return CoinInfo( - coin_name=name, - coin_shortcut="XRC", - decimals=8, - address_type=61, - address_type_p2sh=123, - maxfee_kb=1000000000, - signed_message_header="BitCoin Rhodium Signed Message:\n", - xpub_magic=0x0488b21e, - xpub_magic_segwit_p2sh=None, - xpub_magic_segwit_native=None, - xpub_magic_multisig_segwit_p2sh=None, - xpub_magic_multisig_segwit_native=None, - bech32_prefix=None, - cashaddr_prefix=None, - slip44=10291, - segwit=False, - taproot=False, - fork_id=None, - force_bip143=False, - decred=False, - negative_fee=False, - curve_name='secp256k1', - extra_data=False, - timestamp=False, - overwintered=False, - confidential_assets=None, - ) elif name == "Bitcore": return CoinInfo( coin_name=name, @@ -1894,4 +1865,33 @@ def by_name(name: str) -> CoinInfo: overwintered=True, confidential_assets=None, ) + elif name == "Brhodium": + return CoinInfo( + coin_name=name, + coin_shortcut="XRC", + decimals=8, + address_type=61, + address_type_p2sh=123, + maxfee_kb=1000000000, + signed_message_header="BitCoin Rhodium Signed Message:\n", + xpub_magic=0x0488b21e, + xpub_magic_segwit_p2sh=None, + xpub_magic_segwit_native=None, + xpub_magic_multisig_segwit_p2sh=None, + xpub_magic_multisig_segwit_native=None, + bech32_prefix=None, + cashaddr_prefix=None, + slip44=10291, + segwit=False, + taproot=False, + fork_id=None, + force_bip143=False, + decred=False, + negative_fee=False, + curve_name='secp256k1', + extra_data=False, + timestamp=False, + overwintered=False, + confidential_assets=None, + ) raise ValueError # Unknown coin name