diff options
| author | Bitflash <admin@bitflash.network> | 2026-08-11 09:57:29 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-11 09:57:29 -0300 |
| commit | dfbf7a91caa4a85da7ce10fa296cfa6d2ead5d0c (patch) | |
| tree | 9563f32a76f93015b583be3601b9f4089cb58921 /src/selftest.cpp | |
| parent | 297ff86af120cdffeb20fac4ed2dbd5cc7125263 (diff) | |
wallet: SLIP-0044 4346950 is official, drop 'provisional' naming
The coin type 4346950 (0x425446 = BTF) was merged into the SLIP-0044
registry on 2026-08-07. Rename HD_BIP44_COIN_TYPE_BITFLASH_PROVISIONAL to
HD_BIP44_COIN_TYPE_BITFLASH and update comments, logs and UI strings.
Value is unchanged, so derivation paths and addresses are identical.
Diffstat (limited to 'src/selftest.cpp')
| -rw-r--r-- | src/selftest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/selftest.cpp b/src/selftest.cpp index fadc959..69a3596 100644 --- a/src/selftest.cpp +++ b/src/selftest.cpp | |||
| @@ -350,17 +350,17 @@ static int RunWalletHDSelfTest() | |||
| 350 | nFail += Check(HaveHDSeed(), "the wallet reports having a seed") ? 0 : 1; | 350 | nFail += Check(HaveHDSeed(), "the wallet reports having a seed") ? 0 : 1; |
| 351 | nFail += Check(nHDKeySchema == HD_SCHEMA_BIP44, | 351 | nFail += Check(nHDKeySchema == HD_SCHEMA_BIP44, |
| 352 | "a new recovery phrase records the BIP44 HD schema") ? 0 : 1; | 352 | "a new recovery phrase records the BIP44 HD schema") ? 0 : 1; |
| 353 | nFail += Check(nHDCoinType == HD_BIP44_COIN_TYPE_BITFLASH_PROVISIONAL, | 353 | nFail += Check(nHDCoinType == HD_BIP44_COIN_TYPE_BITFLASH, |
| 354 | "a new recovery phrase records the provisional BIP44 coin type") ? 0 : 1; | 354 | "a new recovery phrase records the SLIP-0044 BIP44 coin type") ? 0 : 1; |
| 355 | nFail += Check(nHDReceiveNext == 1 && nHDChangeNext == 0, | 355 | nFail += Check(nHDReceiveNext == 1 && nHDChangeNext == 0, |
| 356 | "BIP44 receive/change counters reserve the default receive key") ? 0 : 1; | 356 | "BIP44 receive/change counters reserve the default receive key") ? 0 : 1; |
| 357 | std::vector<unsigned int> vBIP44Path = HDBIP44Path(HD_BIP44_COIN_TYPE_BITFLASH_PROVISIONAL, | 357 | std::vector<unsigned int> vBIP44Path = HDBIP44Path(HD_BIP44_COIN_TYPE_BITFLASH, |
| 358 | HD_BIP44_ACCOUNT, | 358 | HD_BIP44_ACCOUNT, |
| 359 | HD_BIP44_CHAIN_RECEIVE, | 359 | HD_BIP44_CHAIN_RECEIVE, |
| 360 | 0); | 360 | 0); |
| 361 | nFail += Check(vBIP44Path.size() == 5 && | 361 | nFail += Check(vBIP44Path.size() == 5 && |
| 362 | vBIP44Path[0] == (HD_BIP44_PURPOSE | bitflash::BIP32_HARDENED) && | 362 | vBIP44Path[0] == (HD_BIP44_PURPOSE | bitflash::BIP32_HARDENED) && |
| 363 | vBIP44Path[1] == (HD_BIP44_COIN_TYPE_BITFLASH_PROVISIONAL | bitflash::BIP32_HARDENED) && | 363 | vBIP44Path[1] == (HD_BIP44_COIN_TYPE_BITFLASH | bitflash::BIP32_HARDENED) && |
| 364 | vBIP44Path[2] == (HD_BIP44_ACCOUNT | bitflash::BIP32_HARDENED) && | 364 | vBIP44Path[2] == (HD_BIP44_ACCOUNT | bitflash::BIP32_HARDENED) && |
| 365 | vBIP44Path[3] == HD_BIP44_CHAIN_RECEIVE && | 365 | vBIP44Path[3] == HD_BIP44_CHAIN_RECEIVE && |
| 366 | vBIP44Path[4] == 0, | 366 | vBIP44Path[4] == 0, |
| @@ -382,7 +382,7 @@ static int RunWalletHDSelfTest() | |||
| 382 | hdParent.chainCode = vchHDChainCode; | 382 | hdParent.chainCode = vchHDChainCode; |
| 383 | bitflash::BIP32PrivateNode hdBIP44ReceiveChild; | 383 | bitflash::BIP32PrivateNode hdBIP44ReceiveChild; |
| 384 | if (!bitflash::BIP32DerivePath(hdParent, | 384 | if (!bitflash::BIP32DerivePath(hdParent, |
| 385 | HDBIP44Path(HD_BIP44_COIN_TYPE_BITFLASH_PROVISIONAL, | 385 | HDBIP44Path(HD_BIP44_COIN_TYPE_BITFLASH, |
| 386 | HD_BIP44_ACCOUNT, | 386 | HD_BIP44_ACCOUNT, |
| 387 | HD_BIP44_CHAIN_RECEIVE, | 387 | HD_BIP44_CHAIN_RECEIVE, |
| 388 | 0), | 388 | 0), |
| @@ -570,7 +570,7 @@ static int RunWalletHDSelfTest() | |||
| 570 | nFail += Check(audit.fHaveSeed, "the recovery audit reports the phrase") ? 0 : 1; | 570 | nFail += Check(audit.fHaveSeed, "the recovery audit reports the phrase") ? 0 : 1; |
| 571 | nFail += Check(audit.nSchema == HD_SCHEMA_BIP44, | 571 | nFail += Check(audit.nSchema == HD_SCHEMA_BIP44, |
| 572 | "the recovery audit reports the derivation schema") ? 0 : 1; | 572 | "the recovery audit reports the derivation schema") ? 0 : 1; |
| 573 | nFail += Check(audit.nCoinType == HD_BIP44_COIN_TYPE_BITFLASH_PROVISIONAL, | 573 | nFail += Check(audit.nCoinType == HD_BIP44_COIN_TYPE_BITFLASH, |
| 574 | "the recovery audit reports the BIP44 coin type") ? 0 : 1; | 574 | "the recovery audit reports the BIP44 coin type") ? 0 : 1; |
| 575 | nFail += Check(audit.nReceiveNext == nHDReceiveNext && audit.nChangeNext == 1, | 575 | nFail += Check(audit.nReceiveNext == nHDReceiveNext && audit.nChangeNext == 1, |
| 576 | "the recovery audit reports receive/change counters") ? 0 : 1; | 576 | "the recovery audit reports receive/change counters") ? 0 : 1; |