Skip to content

Commit

Permalink
Merge pull request #3 from zkemail/feat/audit-fix-2024-12
Browse files Browse the repository at this point in the history
Feat/audit fix 2024 12
  • Loading branch information
SoraSuegami authored Dec 31, 2024
2 parents b491203 + be3c1e6 commit 967607d
Show file tree
Hide file tree
Showing 4 changed files with 439 additions and 666 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Our repository contains the implementations of theee canisters as follows:
Our IC DNS oracle backend canister is available at https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io/?id=fxmww-qiaaa-aaaaj-azu7a-cai.
Once you prepare your identity and wallet on ICP, you can obtain the signature for the hash of the public key registered on DNS for the pair of the selector 20230601 and the domain gmail.com by calling the following command:
```
dfx canister call fxmww-qiaaa-aaaaj-azu7a-cai sign_dkim_public_key '("20230601", "gmail.com")' --network ic --with-cycles 39246898590 --wallet <YOUR_WALLET_CANISTER_ID>
dfx canister call fxmww-qiaaa-aaaaj-azu7a-cai sign_dkim_public_key '("20230601", "gmail.com")' --network ic --with-cycles 85_414_812_012 --wallet <YOUR_WALLET_CANISTER_ID>
```

You can verify it as the ECDSA signature from 0x6293a80bf4bd3fff995a0cab74cbf281d922da02, which is the signer's Ethereum address output by the `get_signer_ethereum_address` function.
Expand All @@ -33,10 +33,10 @@ Specifically, each function requires the following amount of cycles.

| Function Name | Required Cycles |
|---------------|-----------------|
| public_key_hash | 26415989 |
| get_dkim_public_key | 1102987035 |
| sign_dkim_public_key | 39246898590 |
| revoke_dkim_public_key | 39382446626 |
| public_key_hash | 52_946_839 |
| get_dkim_public_key | 2_236_193_826 |
| sign_dkim_public_key | 42_707_406_006 (normal domain) / 85_414_812_012 (domain with gappssmtp.com) |
| revoke_dkim_public_key | 39_438_456_624 (normal domain) / 78_876_913_248 (domain with gappssmtp.com) |

## References
- [Quick Start](https://internetcomputer.org/docs/quickstart/quickstart-intro)
Expand Down
Loading

0 comments on commit 967607d

Please sign in to comment.