Skip to content

Commit

Permalink
chore: update addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshiyari420 committed Aug 6, 2024
1 parent ceb8d0c commit f744d0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/tutorials/permissionless-paymaster/10.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ deducts gas fees from the manager's balance, and pays for the user's transaction

![flow](/images/permissionless-paymaster/flowDiagram.jpg)

For this tutorial, we will use paymaster deployed on ZKsync sepolia testnet : [0x1fc6AAd6FFc4b26229a29432FbC4b65d5A5e462b](https://sepolia.explorer.zksync.io/address/0x1fc6AAd6FFc4b26229a29432FbC4b65d5A5e462b#transactions)
For this tutorial, we will use paymaster deployed on ZKsync sepolia testnet : [0xc1B0E2edC4cCaB51A764D7Dd8121CBf58C4D9E40](https://sepolia.explorer.zksync.io/address/0xc1B0E2edC4cCaB51A764D7Dd8121CBf58C4D9E40#transactions)

## 1. Create a signer
Paymaster will verify signature based on this signer address.
Expand All @@ -82,7 +82,7 @@ Private key of this signer address should be stored securely by the Dapp.
```

## 2. Deposit gas funds and add the signer address
Navigate to ZKsync Sepolia Testnet Explorer: [0x1fc6AAd6FFc4b26229a29432FbC4b65d5A5e462b](https://sepolia.explorer.zksync.io/address/0x1fc6AAd6FFc4b26229a29432FbC4b65d5A5e462b#contract).
Navigate to ZKsync Sepolia Testnet Explorer: [0xc1B0E2edC4cCaB51A764D7Dd8121CBf58C4D9E40](https://sepolia.explorer.zksync.io/address/0xc1B0E2edC4cCaB51A764D7Dd8121CBf58C4D9E40#contract).
Call `depositAndAddSigner()` function with 0.01 ether and the signer address.
![deposit and add a signer](/images/permissionless-paymaster/depositAndAddSigner.png)

Expand Down Expand Up @@ -247,8 +247,8 @@ All refunded ETH are added back to the respective manager's balance in the next
## Notes
1. `_maxNonce` allows flexibility to Dapps by allowing signature replay in a secure constrained way.
Signer should ensure `maxNonce` is not too big from the current nonce of the user and `_expirationTime` is not too far from the current timestamp.
1. `_maxNonce` introduces flexibility to Dapps by allowing signature replay in a secure constrained way.
Signer should ensure `_maxNonce` is not too big from the current nonce of the user and `_expirationTime` is not too far from the current timestamp.
If `_maxNonce` is set to current nonce of the user, then signature cannot be replayed at all.
- Check [here](https://github.com/ondefy/permissionless-multisigner-paymaster/blob/2436a3fd8c401e607b89960d903dc70ca3670ed0/contracts/paymasters/PermissionlessPaymaster.sol#L199-L203)
Expand Down

0 comments on commit f744d0a

Please sign in to comment.