hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

Integers in data model #5008

Open mversic opened 2 months ago

mversic commented 2 months ago

I believe that currently we're almost exclusively using u64 (sometimes u32). This is because usize can't be serialized to SCALE.

  1. Should we let serialization decide on how to represent integers in data model? or should we use usize but serialize it as u64?
  2. Should we use only u64? or should we use smaller integers when appropriate?