You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contrib/msggen/msggen/schema.json
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25994,12 +25994,13 @@
25994
25994
"addresstype": {
25995
25995
"type": "string",
25996
25996
"description": [
25997
-
"It specifies the type of address wanted; currently *bech32* (e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on bitcoin mainnet), or *p2tr* taproot addresses. The special value *all* generates all known address types for the same underlying key."
25997
+
"It specifies the type of address wanted; currently *bech32* (e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on bitcoin mainnet), *p2tr* taproot addresses, or *bip86* for BIP86-derived taproot addresses. The special value *all* generates all known address types for the same underlying key."
25998
25998
],
25999
25999
"default": "*bech32* address",
26000
26000
"enum": [
26001
26001
"bech32",
26002
26002
"p2tr",
26003
+
"bip86",
26003
26004
"all"
26004
26005
]
26005
26006
}
@@ -26013,7 +26014,7 @@
26013
26014
"added": "v23.08",
26014
26015
"type": "string",
26015
26016
"description": [
26016
-
"The taproot address."
26017
+
"The taproot address (returned for both 'p2tr' and 'bip86' addresstype)."
Copy file name to clipboardExpand all lines: doc/schemas/newaddr.json
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,13 @@
17
17
"addresstype": {
18
18
"type": "string",
19
19
"description": [
20
-
"It specifies the type of address wanted; currently *bech32* (e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on bitcoin mainnet), or *p2tr* taproot addresses. The special value *all* generates all known address types for the same underlying key."
20
+
"It specifies the type of address wanted; currently *bech32* (e.g. `tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg` on bitcoin testnet or `bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej` on bitcoin mainnet), *p2tr* taproot addresses, or *bip86* for BIP86-derived taproot addresses. The special value *all* generates all known address types for the same underlying key."
21
21
],
22
22
"default": "*bech32* address",
23
23
"enum": [
24
24
"bech32",
25
25
"p2tr",
26
+
"bip86",
26
27
"all"
27
28
]
28
29
}
@@ -36,7 +37,7 @@
36
37
"added": "v23.08",
37
38
"type": "string",
38
39
"description": [
39
-
"The taproot address."
40
+
"The taproot address (returned for both 'p2tr' and 'bip86' addresstype)."
# For regtest, the addresses should be the same but with bcrt1p prefix
1760
+
# Our addresses are for indices 1 and 2, so they should match the regtest versions
1761
+
expected_regtest_addr_1="bcrt1p4qhjn9zdvkux4e44uhx8tc55attvtyu358kutcqkudyccelu0waslcutpz"# index 1
1762
+
expected_regtest_addr_2="bcrt1p0d0rhyynq0awa9m8cqrcr8f5nxqx3aw29w4ru5u9my3h0sfygnzsl8t0dj"# index 2
1763
+
1764
+
# Assert on the exact test vectors since we have the correct seed
1765
+
assertp2tr_addr==expected_regtest_addr_1, f"First address should match test vector for index 1. Expected: {expected_regtest_addr_1}, Got: {p2tr_addr}"
1766
+
assertp2tr_addr2==expected_regtest_addr_2, f"Second address should match test vector for index 2. Expected: {expected_regtest_addr_2}, Got: {p2tr_addr2}"
1767
+
1768
+
@unittest.skipIf(TEST_NETWORK!='regtest', "BIP86 tests are regtest-specific")
0 commit comments