This directory contains example scripts that implement the functionality covered in each tutorial. These scripts provide complete, working implementations that you can use to experiment with XIDs.
Each subdirectory corresponds to a specific tutorial:
- 01-basic-xid - Creating your first XID
- 02-xid-structure - Understanding XID structure
- 03-profile-xid - Self-attestation with XIDs
- 04-peer-endorsement - Peer endorsement with XIDs
- 05-key-management - Key management with XIDs
Each example directory contains shell scripts that demonstrate the concepts from the corresponding tutorial.
To run an example:
cd examples/01-basic-xid
./create_basic_xid.shThe script output will show you the steps and results similar to what you would see when following the tutorial manually.
Each example directory typically contains:
- Shell scripts that implement the tutorial functionality
- An output subdirectory where generated files are stored
- Any key files needed for the examples
- For tutorial #5, a consolidated script (
pseudonymous_key_management.sh) that demonstrates key management principles
- Learning: Run the examples to see XIDs in action before trying the tutorials
- Testing: Use the examples to validate your understanding after completing a tutorial
- Development: Reference the examples when building your own XID applications
- Troubleshooting: Compare your work with the examples when debugging issues
The same prerequisites for the tutorials apply to these examples:
- The
envelopeCLI tool installed - Basic familiarity with the command line
- No prior knowledge of XIDs or Gordian Envelope is required