coin_info.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. // This file is automatically generated from coin_info.c.mako
  2. // DO NOT EDIT
  3. #include "coins.h"
  4. #include "../crypto/curves.h"
  5. #include "../crypto/secp256k1.h"
  6. const CoinInfo coins[COINS_COUNT] = {
  7. {
  8. .coin_name = "Bitcoin",
  9. .coin_shortcut = "BTC",
  10. .maxfee_kb = 2000000,
  11. .signed_message_header = "\x18" "Bitcoin Signed Message:\n",
  12. .has_segwit = true,
  13. .has_taproot = true,
  14. .has_fork_id = false,
  15. .force_bip143 = false,
  16. .decred = false,
  17. .decimals = 8,
  18. .address_type = 0,
  19. .address_type_p2sh = 5,
  20. .xpub_magic = 0x0488b21e,
  21. .xpub_magic_segwit_p2sh = 0x049d7cb2,
  22. .xpub_magic_segwit_native = 0x04b24746,
  23. .xpub_magic_multisig_segwit_p2sh = 0x0295b43f,
  24. .xpub_magic_multisig_segwit_native = 0x02aa7ed3,
  25. .fork_id = 0,
  26. .bech32_prefix = "bc",
  27. .cashaddr_prefix = NULL,
  28. .coin_type = (0 | 0x80000000),
  29. .negative_fee = false,
  30. .curve_name = SECP256K1_NAME,
  31. .curve = &secp256k1_info,
  32. .extra_data = false,
  33. .timestamp = false,
  34. .overwintered = false,
  35. },
  36. {
  37. .coin_name = "Regtest",
  38. .coin_shortcut = "REGTEST",
  39. .maxfee_kb = 10000000,
  40. .signed_message_header = "\x18" "Bitcoin Signed Message:\n",
  41. .has_segwit = true,
  42. .has_taproot = true,
  43. .has_fork_id = false,
  44. .force_bip143 = false,
  45. .decred = false,
  46. .decimals = 8,
  47. .address_type = 111,
  48. .address_type_p2sh = 196,
  49. .xpub_magic = 0x043587cf,
  50. .xpub_magic_segwit_p2sh = 0x044a5262,
  51. .xpub_magic_segwit_native = 0x045f1cf6,
  52. .xpub_magic_multisig_segwit_p2sh = 0x024289ef,
  53. .xpub_magic_multisig_segwit_native = 0x02575483,
  54. .fork_id = 0,
  55. .bech32_prefix = "bcrt",
  56. .cashaddr_prefix = NULL,
  57. .coin_type = (1 | 0x80000000),
  58. .negative_fee = false,
  59. .curve_name = SECP256K1_NAME,
  60. .curve = &secp256k1_info,
  61. .extra_data = false,
  62. .timestamp = false,
  63. .overwintered = false,
  64. },
  65. {
  66. .coin_name = "Testnet",
  67. .coin_shortcut = "TEST",
  68. .maxfee_kb = 10000000,
  69. .signed_message_header = "\x18" "Bitcoin Signed Message:\n",
  70. .has_segwit = true,
  71. .has_taproot = true,
  72. .has_fork_id = false,
  73. .force_bip143 = false,
  74. .decred = false,
  75. .decimals = 8,
  76. .address_type = 111,
  77. .address_type_p2sh = 196,
  78. .xpub_magic = 0x043587cf,
  79. .xpub_magic_segwit_p2sh = 0x044a5262,
  80. .xpub_magic_segwit_native = 0x045f1cf6,
  81. .xpub_magic_multisig_segwit_p2sh = 0x024289ef,
  82. .xpub_magic_multisig_segwit_native = 0x02575483,
  83. .fork_id = 0,
  84. .bech32_prefix = "tb",
  85. .cashaddr_prefix = NULL,
  86. .coin_type = (1 | 0x80000000),
  87. .negative_fee = false,
  88. .curve_name = SECP256K1_NAME,
  89. .curve = &secp256k1_info,
  90. .extra_data = false,
  91. .timestamp = false,
  92. .overwintered = false,
  93. },
  94. };