Skip to content

Commit 20e4015

Browse files
authored
add mention of policy params (#420)
* add mention of policy params * close quotation * mention encoding
1 parent 7b28a4a commit 20e4015

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

concepts/policies/examples/ethereum.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ See [here](../../../concepts/policies/smart-contract-interfaces) for more inform
5050
}
5151
```
5252

53+
### Deny signing of `NO_OP` keccak256 payloads
54+
55+
```json
56+
{
57+
"policyName": "Deny NO_OP hash signing",
58+
"effect": "EFFECT_DENY",
59+
"condition": "activity.type == 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2' && activity.params.hash_function == 'HASH_FUNCTION_NO_OP' && activity.params.encoding != 'PAYLOAD_ENCODING_EIP712'"
60+
}
61+
```
62+
5363
#### Allow signing of EIP-712 payloads for EIP-3009 Transfers
5464

5565
```json

concepts/policies/language.mdx

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

0 commit comments

Comments
 (0)