Input Format Guide
A practical guide to formatting inputs for Bonsol ZK programs, covering common pitfalls and working solutions for different input scenarios.
Overview
Understanding Input Format Mismatch
Common Error: InputError (0x3)
Working Input Formats
Single Combined Byte Input
String Inputs (Limited Support)
Debugging Input Issues
Enable Debug Output
Check Transaction vs. Execution
Monitor Bonsol Logs
Best Practices
1. Align with ZK Program Expectations
2. Use Single Combined Inputs
3. Match Manifest Input Count
4. Test with Known Working Formats
Example: Working Calculator Client
Troubleshooting Checklist
Further Reading
Last updated