argumentcomputer / lurk

Lurk is a Turing-complete programming language for zk-SNARKs. It is a statically scoped dialect of Lisp, influenced by Scheme and Common Lisp.
https://docs.argument.xyz
MIT License
47 stars 3 forks source link

print commitments with uniform width #376

Open porcuquine opened 2 weeks ago

porcuquine commented 2 weeks ago

Commitments should be printed with a uniform width and zero-padded (on left) if necessary.

lurk-user> (commit 1) (commit 2)
[2 iterations] => #c0xf99d96623838468091ce6590ccb3b829938823d964f3f5962f837f1400e2b
[2 iterations] => #c0x214a7be7ecd52a06de26ad630e03f0a406bda62c9e624083d0d7580e3e4907

This should instead be

lurk-user> (commit 1) (commit 2)
[2 iterations] => #c0x0f99d96623838468091ce6590ccb3b829938823d964f3f5962f837f1400e2b
[2 iterations] => #c0x214a7be7ecd52a06de26ad630e03f0a406bda62c9e624083d0d7580e3e4907