Guard functions
Guard functions are used to create and manage account principals for different types of guards and to enforce guard predicate functions.
| Function | Description |
|---|---|
| create‑capability‑guard | Create a predicate function that ensures that specific conditions are true and can be enforced to grant the specified CAPABILITY. |
| create‑capability‑pact‑guard | Create a predicate function that ensures that specific conditions are true and can be enforced to grant the specified CAPABILITY for steps defined in a defpact multi-step transaction. |
| create‑module‑guard | Create a predicate function with the specified name that ensures that specific conditions are true for the current module. |
| create‑pact‑guard | Define a predicate function with the specified name that captures the results of the pact-id function for a defpact transaction. |
| create‑principal | Create a principal account that unambiguously identifies a specified guard predicate function. |
| create‑user‑guard | Define a custom guard to evaluate and enforce. |
| is‑principal | Determine whether a string conforms to the principal format without proving its validity. |
| keyset‑ref‑guard | Create a guard for the keyset registered as keyset-ref in the database. |
| typeof‑principal | Return the protocol type of the specified principal value. |
| validate‑principal | Validate that a principal identifies a specified guard. |