I want to create a circuit to measure the length of a string in Circom. There are only numeric data types, how can I do that?
I want to create a circuit to measure the length of a string in Circom. There are only numeric data types, how can I do that?
You can supply string as a series of bytes. You can:
This will allow you to measure string lengths of up to 256 bytes.