Skip to content

Commit

Permalink
fix: removing unstable, fixing context to be in line with ERC7715
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Jul 11, 2024
1 parent 10733a3 commit 836180f
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions docs/specs/servers/blockchain/blockchain-permissions-api.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Blockchain API Sessions and Permissions

This API is **unstable**, not yet production ready and can be changed at any time.

## Sessions permissions storage

### Get permissions list for account
Expand Down Expand Up @@ -106,26 +104,26 @@ Updating permissions context for the certain permission idenitifier.

### Request body:

The POST request body should be in JSON format and following schema:
The POST request body should be in JSON format and following schema based on the [ERC-7715](https://github.com/ethereum/ERCs/blob/a75e2d80698441f5da9e0fe98d38122a862aed89/ERCS/erc-7715.md#signers):

```typescript
{
pci: string,
signature: string,
context: {
{
signer: {
permissionType: string,
ids: [string]
},
expiry: number,
signerData: {
userOpBuilder: string
},
factory: string,
factoryData: string,
permissionsContext: string
}
signer: {
type: string,
data:{
ids: string[],
}
},
expiry: number,
signerData: {
userOpBuilder: string
},
factory: string,
factoryData: string,
permissionsContext: string
}
}
```
Expand Down

0 comments on commit 836180f

Please sign in to comment.