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

Define a macro of substrate primitive types #146

Open osuketh opened 5 years ago

osuketh commented 5 years ago

There is some redundant code to define primitive types. Define macros for such types to implement some trait like Encode, Decode, TryFrom, Serialize, Deserialize, AsBytesRef. https://github.com/LayerXcom/zero-chain/tree/master/core/primitives/src