HarryR / ethsnarks

A toolkit for viable zk-SNARKS on Ethereum, Web, Mobile and Desktop
GNU Lesser General Public License v3.0
240 stars 57 forks source link

Fix compile errors when including poseidon.hpp in multiple source files #153

Closed Brechtpd closed 4 years ago

Brechtpd commented 4 years ago

This fixes the multiple definition errors when including poseidon.hpp in multiple source files. I used static, inline would also work to keep everything in a single header with minimal changes.

HarryR commented 4 years ago

Thank you