privacy-scaling-explorations / zk-kit

A monorepo of reusable libraries for zero-knowledge technologies.
https://zkkit.pse.dev
MIT License
295 stars 80 forks source link

Ensure even length before converting hexadecimal strings to buffer #208

Closed cedoor closed 8 months ago

cedoor commented 8 months ago

Description

Buffer.from needs a hexadecimal string with an even length. If the length is odd it does not consider the first byte. This PR ensures the length is always even.

Additionally, it removes "be" occurrences from functions without "le"/"be" alternatives.

Related Issue(s)

Fixes #204

Checklist