Skip to content

Commit

Permalink
Adds FAQs section to readme (#10)
Browse files Browse the repository at this point in the history
* Add faqs

* Update README.md

* Update README.md

---------

Co-authored-by: awkweb <[email protected]>
  • Loading branch information
sammdec and tmm authored Jan 9, 2025
1 parent e17b6ad commit 4e366bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Experimental Next-gen Account for Ethereum.
- [`createAccount`](#createaccount)
- [`sessions`](#sessions)
- [Wagmi Reference](#wagmi-reference)
- [FAQs](#faqs)
- [Development](#development)
- [License](#license)

Expand Down Expand Up @@ -505,6 +506,21 @@ import { Hooks } from 'porto/wagmi' // Hooks.useConnect()
import { useConnect } from 'porto/wagmi/Hooks'
```

## FAQs

### Is Webauthn required or can any EOA be used?
Any EOA can be used see [`experimental_importAccount`](#experimental_importaccount).

### Can sessions be revoked?
Yes, see [`revokable`](https://github.com/ithacaxyz/porto/blob/main/contracts/src/account/ExperimentalDelegation.sol#L132-L141) on the Account contract.

### Do sessions expire?
Yes, this can be done by calling [`experimental_grantSession`](#experimental_grantsession) with an unix timestamp.

### When a session is created what permissions are granted?
Currently full control over the account is granted, but in the future this can be more restricted (see [`execute`](https://github.com/ithacaxyz/account/blob/main/src/GuardedExecutor.sol#L78-L83)).


## Development

```bash
Expand Down

0 comments on commit 4e366bf

Please sign in to comment.