Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions concepts/policies/examples/ethereum.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ See [here](../../../concepts/policies/smart-contract-interfaces) for more inform
}
```

### Deny signing of `NO_OP` keccak256 payloads

```json
{
"policyName": "Deny NO_OP hash signing",
"effect": "EFFECT_DENY",
"condition": "activity.type == 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2' && activity.params.hash_function == 'HASH_FUNCTION_NO_OP' && activity.params.encoding != 'PAYLOAD_ENCODING_EIP712'"
}
```

#### Allow signing of EIP-712 payloads for EIP-3009 Transfers

```json
Expand Down
1 change: 1 addition & 0 deletions concepts/policies/language.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ The language is strongly typed which makes policies easy to author and maintain.
| **Activity** | type | string | The type of the activity (e.g. ACTIVITY_TYPE_SIGN_TRANSACTION_V2) |
| | resource | string | The resource type the activity targets: `USER`, `PRIVATE_KEY`, `POLICY`, `WALLET`, `ORGANIZATION`, `INVITATION`, `CREDENTIAL`, `CONFIG`, `RECOVERY`, `AUTH`, `OTP`, `PAYMENT_METHOD`, `SUBSCRIPTION` |
| | action | string | The action of the activity: `CREATE`, `UPDATE`, `DELETE`, `SIGN`, `EXPORT`, `IMPORT` |
| | params | string | The parameters of the activity: `SIGN_RAW_PAYLOADS`, `SIGN_RAW_PAYLOAD_V2` - `hash_function`, `encoding` |
| **Wallet** | id | string | The identifier of the wallet |
| | imported | bool | Boolean indicating whether or not this wallet has been imported |
| | exported | bool | Boolean indicating whether or not this wallet has been exported |
Expand Down