Skip to content

Commit

Permalink
fix confidential store tutorial (#120)
Browse files Browse the repository at this point in the history
added instruction to send private key when redeploying the ConfidentialStore contract.
  • Loading branch information
fiiiu authored Jun 6, 2024
1 parent 39ed6f1 commit 8f6558c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/tutorials/confidential-store.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,17 @@ By now, this onchain-offchain pattern should be becoming more familiar. Offchain

The theory here is that any searcher or other service could listen to logs from `TxnSignature` events in this contract on SUAVE and submit them as part of their bundles to block builders for Ethereum L1. However, you can also use the Gateway pattern discussed in the next tutorial to call your preferred RPC provider yourself, such that you need not rely on these events being detected.

Recompile and redeploy your contract, and call the offchain function to see this all in action:
Recompile and redeploy your contract, send your private key as a confidential input as before, and call the offchain function to see this all in action:

```bash
forge build
```
```bash
suave-geth spell deploy ConfidentialStore.sol:ConfidentialStore
```

```bash
suave-geth spell conf-request --confidential-input b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291 <your_new_contract_address> 'registerPrivateKeyOffchain()'
```
```bash
suave-geth spell conf-request <your_new_contract_address> 'offchain()'
```
Expand All @@ -188,4 +190,4 @@ If you'd like to see a full implementation of how to sign a transaction for anot

---

Congratulations! 💃 You've just begun to master the confidential store. The applications that can be built from this kind of foundation are extensive. We're excited to see what you build...
Congratulations! 💃 You've just begun to master the confidential store. The applications that can be built from this kind of foundation are extensive. We're excited to see what you build...

0 comments on commit 8f6558c

Please sign in to comment.