privacy-scaling-explorations / zk-kit

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

New utility functions to convert base64 strings #299

Closed cedoor closed 5 months ago

cedoor commented 5 months ago

Is your feature request related to a problem? Please describe.

Many projects could benefit from functions to convert buffers to base64 and vice versa, or text to base64 and vice versa.

Describe the solution you'd like

@zk-kit/utils already provides many functions to convert buffers to other types. Since the Buffer library already includes methods to convert base64 strings to other values, it's quite easy to support the conversions mentioned above.