-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] P2SH by type Auth #4
Comments
Could you write some pseudo code about this feature? And a question to the design of second cell: Why is the logic in lock but not in type?
|
Hey @XuJiandong, thank you for your time and interest 🤗
Exactly, that's the issue here! To be P2SH compatible:
Without any modification to Omnilock, Domain Logic script would need to be present in the transaction possibly both as lock script (to satisfy P2SH requirements) and type script (to satisfy CoBuild action requirements). While with the implementation of this feature, Domain Logic script would need to be present in the transaction only by type as this would satisfy requirements of both P2SH by type and CoBuild action.
Sure, the requested feature itself is a variation of Unlock via owner's lock script hash. Let's say a. Unlock via owner's type script hash in input cell:
b. Unlock via owner's type script hash in output cell:
The use in conjunction with administrator mode is a variation of Unlock via administrator's lock script hash (1). Let's say a. Unlock via administrator's type script hash in input cell:
b. Unlock via administrator's type script hash in output cell:
|
Firstly, I think this behavior should remain untouched:
We can add a new flag, like "0xFB", as below: 0xFB: The auth content that represents the blake160 hash of a type script. The script will check if the current transaction contains an input/output cell with a matching type script. Otherwise, it would return with an error. This change is also applied to administrator mode. Please confirm this change fulfill requirement. Then I can push this propose forward. |
Yes, that's 100% correct, just let me confirm the intended behavior from a CoBuild perspective:
a. Multiple OTX use Note: in a CoBuild OTX transaction the behavior between |
Yes, In Multiple OTX, omnilock will work as 2.a, both for 0xFB(new) and 0xFC(old). |
About About
An attack can be the following:
On the other side, The same attack may apply to So when documenting |
In the end @xxuejie convinced me to NOT use this possible Omnilock feature:
|
Hello Cryptape, iCKB here 👋
I noticed that Cryptape is re-developing Omnilock to be CoBuild compatible and eventually Cryptape will redeploy the Omnilock. At the same time, the impeding transition to CoBuild and CoBuild OTX has forced me to re-evaluate iCKB from the contracts up.
As per Nervos Talk post, CoBuild, Omnilock and Administrator Mode, I'm evaluating a design based on Omnilock's Administrator Mode for the limit order contract. Briefly, a Limit Order design could use Omnilock as base and be unlocked either:
In this design there are two kind of cells:
Considerations:
Could Cryptape implement P2SH by type Auth in Omnilock as a new Auth flag?
The text was updated successfully, but these errors were encountered: