-
Notifications
You must be signed in to change notification settings - Fork 80
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
Rename Gateway library to Decrypt library #662
Comments
In current design you cannot use |
I just copied past an example from TestAsyncDecrypt and changed it, I probably didn't copy the good one. Ignore the + 2 days. |
For Gateway Library: you said For GatewayCaller : |
@PacificYield also suggested to rename the |
Yes, I think we could rename |
We need to be opinionated there. We added an option to "choose" between trustless or not, I think we should go for trustless or "almost" trustless (= trustless if the Gateway contract is not updated). We need to simplify things. I'm open to proposition in that direction. |
So we keep only what i call today the "trusted" decryption case, meaning the KMSVerifier is called only by the GatewayContract, never the dapp? and hence we make the GatewayContract immutable instead of upgradeable? I am ok with this but , this contradicts @mortendahl 's original specification since he explicitly wanted the dApp itself to check KMS singatures. Wdyt @mortendahl ? |
As I said, I'm ok with trustless (= dapp is verifying signature) or "semi trusted" (=Gateway contract verifies signature but could potentially updated). Again, the idea is not to design "the best Gateway", the idea is to deliver a usable Gateway for ZWS. |
Is this an English "or" (exclusive) or a mathematics "or" (inclusive)? |
This is "or" exclusive. I want to get rid of the boolean option as described in the library ticket. |
Yes I think it's fine, if it's causing big issues. If we ever notice that developers are asking for it, we can re-introduce the trustless. |
what is the conclusion? What about the Another issue related to trustless decryption is that it would be very helpful in case a dApp wants high availability and not assume Gateway will be always online to fulfil the request @mortendahl so I am not sure we could really neglect the trustless case long term. Otherwise, a way to avoid this issue short term is to remove the |
I'm wondering if developers would not code this resilient into the dapp more directly. Ie, the ability to update which gateway service they use in case it stops running. |
To simplify wording and API of the Gateway:
Gateway library
The signatures are always verified: (we need to pick one option)
GatewayCaller
Two options:
DecryptParams
?Decrypt
?StoreDecryptParams
?We'd keep
setGateway
and othersgatewayUrl
when we are referring to the contract address or the URL.The text was updated successfully, but these errors were encountered: