Skip to content

Commit d9026f7

Browse files
committed
doc: add benchmark
1 parent 4dab437 commit d9026f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,22 @@ The Paymaster contract will get repaid on the source chain(s). Ni1o: user has 10
5050
Paymaster Owner can subscribe to webhook alerts when the Paymaster balance falls below a certain threshold, before automatic rebalancing is implemented.
5151

5252
### Paymaster Verifiers
53-
- Permissionless verification of remote event (`InvoiceCreated`) or storage proof (`invoices` mapping in the invoiceManager)
53+
- Permissionless verification of remote event (`InvoiceCreated`) or storage proof (`invoices` mapping in the `invoiceManager`)
5454
- Permissionless verification of invoice
5555

5656
As part of chain abstraction activation, an account registers a Paymaster Verifier, which is subsequently called by the InvoiceManager before processing repayments.
5757

58-
One of the system's key strengths is its modular approach to proof verification. State proofs will play a crucial role in Ethereum interoperability, with more proof providers emerging. The design allows for seamless integration of new proof verification strategies, giving advanced users the flexibility to choose the one that best suits their use case.
5958

6059
## Trust assumptions
6160

6261
- The system relies on cross-L2 execution proofs currently provided by [Polymer](https://docs.polymerlabs.org/docs/build/examples/chain_abstraction/). This eliminates the need for Users to trust Openfort or the Ecosystem. To repay the ecosystem on the source chain(s) from the user assets locked in the vault(s), Openfort must prove the execution of the userOp on the destination chain. There is no refund on source chain without the corresponding remote chain execution proof. The `InvoiceManager` tracks invoices onchain to prevent double-refund.
6362
- The system supports [Hashi](https://crosschain-alliance.gitbook.io/hashi/introduction/what-is-hashi) as a fallback proving mechanism if Polymer or Openfort cease operations. Liquidity providers (LPs) can generate a proof for their fronted funds by running a [Hashi RPC API locally](https://github.com/gnosis/hashi/tree/main/packages/rpc#getting-started) and call the `fallbackRepay` function of the `InvoiceManager` with the proof and the invoice. This enables refunds using only public data, without relying on any third party. The fallback proving strategy may evolve, but it will always remain permissionless, as it ultimately determines the system's security.
6463
- Openfort does not have custody of funds in the Ecosystem Paymaster, as the userOp is co-signed within a secure enclave that enforces predefined policies set by the ecosystem. At any time, the ecosystem can disable a signer, immediately preventing any new userOp from being sent.
6564

65+
One of the system's key strengths is its modular approach to proof verification. State proofs will play a crucial role in Ethereum interoperability, with more proof providers emerging. The design allows for seamless integration of new proof verification strategies, giving advanced users the flexibility to choose the one that best suits their use case. With Polymer you get cheap and extremely fast proofs but you trust the sequencers, with Hashi you leverage multiple independent oracles to validate and verify block headers across different blockchain networks.
66+
67+
![gas cost benchmark](./assets/benchmark.jpg)
68+
6669
## Deployments
6770

6871
- One `InvoiceManager` owned by Openfort

assets/benchmark.jpg

132 KB
Loading

0 commit comments

Comments
 (0)