nervosnetwork / sparse-merkle-tree

47 stars 37 forks source link

Can we make blake2b-rs an optional dep? #48

Open blckngm opened 1 year ago

blckngm commented 1 year ago

People may want to use a different hash function. And blake2b-rs can be hard to build for e.g. wasm.

BadConfig commented 1 year ago

Also faced this need while was trying to pack this tree into no-std risk-v mashine. Made #49 with the potential solution, it seems to be easy to do, correct me if I'm wrong