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

Devide ciphertext primitive type #149

Closed osuketh closed 5 years ago

osuketh commented 5 years ago

Dividing ciphertext primitive types into right and left because left ciphertext needs to be sent to on-chain per each account, but right ciphertexts are only needed just one for whole encryption key set in a transaction. To do this, we can save tx data by 32 bytes of a transaction of confidential transfer, but even more in an anonymous transaction, we can save 32 * (account set - 1) bytes per a transaction.