Skip to content

update docs to use pod lang v1#268

Merged
ed255 merged 1 commit intomainfrom
feat/doc-update-lang
Jun 10, 2025
Merged

update docs to use pod lang v1#268
ed255 merged 1 commit intomainfrom
feat/doc-update-lang

Conversation

@ed255
Copy link
Collaborator

@ed255 ed255 commented Jun 9, 2025

Resolve #266

The examples in examples.md already use "literals anywhere" feature (that's because those examples were higher level descriptions of use-cases, although the language with literals anywhere is now rich enough to encode those examples).
I've only taken the liberty of nesting ANDs inside ORs, which the language doesn't support just to keep the examples as succinct as they were before.
The eth_dos example in book/src/customexample.md is using the old approach of passing wildcards for origin and keys, which don't work in recursion. We can update that once #229 is resolved.

Gt(?paystub["issue_date"], NOW_MINUS_7D) # issue_date is less than 7d old
// Annual salary is at least $20,000
Gt(?paystub["annual_salary"], 20000)
// Private key knowledge
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated this to proof knowledge of the sk by having a signed pod with an auth entry.

@ed255 ed255 requested a review from robknight June 9, 2025 14:49
@ed255 ed255 merged commit 6258e52 into main Jun 10, 2025
6 checks passed
@ed255 ed255 mentioned this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs and examples to use the POD2 language

2 participants