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

refactor: encode JsonString as object in scale #5084

Closed Erigara closed 2 weeks ago

Erigara commented 1 month ago

Context

Aim to close differences between scale and json by encoding JsonString as enum in scale and not just String.

Closes #5024

Solution

Approach is to manually implement encode and decode for JsonString and describe it in schema.

Review notes

I am not sure that this will help since there is anyway not 1 to 1 mapping between scale and json.

And in the json we still expect arbitrary json object and not smt encoded using schema...