LayerXcom / zero-chain

A privacy-preserving blockchain on Substrate
https://layerxcom.github.io/zerochain-book/
GNU General Public License v3.0
260 stars 42 forks source link

Add `TryFrom` traits to convert original types to zerochain primitive types #144

Open osuketh opened 5 years ago

osuketh commented 5 years ago

Add TryFrom traits to convert original types to zerochain primitive types in proofs crate. Use Bls12 type instead of JubjubEngine trait in original types in order to avoid recursive definitions.

https://github.com/LayerXcom/zero-chain/blob/553e7e0f0b386964d22ff074126aa78367477bec/core/proofs/src/transaction.rs#L68