Skip to content

Commit d3ca89a

Browse files
authored
Merge pull request #437 from XuJiandong/omnilock-owner-lock
Improve description to owner lock in omnilock
2 parents bd5d3ff + bbadae7 commit d3ca89a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

rfcs/0042-omnilock/0042-omnilock.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,14 @@ Depending on the value of the flag, the auth content has the following interpret
114114
MultiSig](https://github.com/nervosnetwork/ckb-system-scripts/blob/master/c/secp256k1_blake160_multisig_all.c) with a little modification.
115115
When a message is calculated for signing, there is a step to clear witness. In omnilock, it clears the whole field `lock` in `witness`. But in CKB MultiSig script, it only clears part of `lock` in `witness`. This part is used as `signatures` followed by `multisig_script`.
116116
117-
* 0xFC: The auth content that represents the blake160 hash of a lock script. The lock script will check if the current
118-
transaction contains an input cell with a matching lock script. Otherwise, it would return with an error. It's similar
119-
to [P2SH in BTC](https://en.bitcoin.it/wiki/Pay_to_script_hash).
117+
* 0xFC: The auth content represents the blake160 hash of a lock script. The
118+
omnilock checks if the current transaction contains an input cell with a lock
119+
script hash matching the auth content. If it is present, the validation
120+
succeeds. In such a transaction, there should be at least 2 cells on input:
121+
one locked by omnilock and another locked by the owner script. The owner
122+
script's blake160 hash is the same as the auth content. In other words, the
123+
Omnilock delegates its validation to the owner script. It's similar to [P2SH
124+
in BTC](https://en.bitcoin.it/wiki/Pay_to_script_hash).
120125
121126
* 0xFD: The auth content that represents the blake160 hash of a preimage. The preimage contains
122127
[exec](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0034-vm-syscalls-2/0034-vm-syscalls-2.md#exec) information that is used to delegate signature verification to

0 commit comments

Comments
 (0)