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

Define IMTNode explicitly instead of any #323

Closed 0xDatapunk closed 1 month ago

0xDatapunk commented 2 months ago

https://github.com/privacy-scaling-explorations/zk-kit/blob/aa02c6df831e0b40f4cffc11ec5e92a1c8c319cb/packages/imt/src/types/index.ts#L4

does it make sense to define export type IMTNode = number | string | bigint directly instead of any? All functions require such types anyway

cedoor commented 1 month ago

Duplicate: https://github.com/privacy-scaling-explorations/zk-kit/issues/339