Skip to content

Commit 4b502ff

Browse files
authored
Merge pull request #439 from XuJiandong/omnilock-btc-address
Add details to supported BTC addresses in omnilock
2 parents d3ca89a + fc715eb commit 4b502ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

rfcs/0042-omnilock/0042-omnilock.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,16 @@ Depending on the value of the flag, the auth content has the following interpret
9494
```
9595
"CKB (Bitcoin Layer) transaction: 0x" + hex(signing message hash)
9696
```
97-
In this way, it can show message on wallets(e.g. UniSat, OKX) nicely.
97+
In this way, it can show message on wallets(e.g. UniSat, OKX) nicely.
98+
99+
It supports three types of BTC addresses: Native segwit (P2WPKH), Nested
100+
segwit (P2SH-P2WPKH), and Legacy (P2PKH). A 20-byte hash can be decoded from a
101+
BTC address using bech32m/bech32 or base58. This hash exactly corresponds to
102+
the auth content. Note that the Taproot (P2TR) address is not supported.
103+
Generic P2SH is not supported; only P2SH-P2WPKH is acceptable. It's not
104+
allowed to use an address (e.g. P2SH-multisig) described as P2SH but does not
105+
include P2WPKH.
106+
98107
99108
* 0x05: It follows the unlocking method used by dogecoin. The signing message
100109
hash is converted as following:

0 commit comments

Comments
 (0)