Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[schema] #2114: Sorted collections support in schemas #2115

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

mversic
Copy link
Contributor

@mversic mversic commented Apr 17, 2022

Signed-off-by: Marin Veršić [email protected]

Description of the Change

  • define stable schema type names
  • introduce sorted collections to schemas

Considering that we make abundant use of digital signatures, serialized formats of our internal structures must have a defined ordering, e.g. BTreeMap must be represented as a sorted vector of tuples. While it may be possible that there will be BTreeMaps that won't be part of a structure that is signed(and require a defined ordering of tuples), I find it to be quite unlikely and don't think it worth to support such exception.

Issue

Closes #2114

Benefits

Possible Drawbacks

Usage Examples or Tests [optional]

Alternate Designs [optional]

@github-actions github-actions bot added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Apr 17, 2022
@mversic mversic added the api-changes Changes in the API for client libraries label Apr 17, 2022
@mversic mversic changed the title [schema] #2114: define stable schema type_name, use vec of tuples for maps in schemas [schema] #2114: Sorted collections support in schemas Apr 17, 2022
@mversic mversic force-pushed the schema_rework branch 5 times, most recently from de84c1b to a5fa918 Compare April 19, 2022 11:03
@mversic mversic force-pushed the schema_rework branch 4 times, most recently from 5a21609 to c54c2a9 Compare April 19, 2022 23:10
s8sato
s8sato previously approved these changes Apr 20, 2022
@appetrosyan appetrosyan merged commit a13ec4c into hyperledger-iroha:iroha2-dev Apr 20, 2022
mversic added a commit to mversic/iroha that referenced this pull request May 2, 2022
appetrosyan pushed a commit to appetrosyan/iroha that referenced this pull request May 12, 2022
mversic added a commit to mversic/iroha that referenced this pull request May 13, 2022
@mversic mversic deleted the schema_rework branch December 27, 2022 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-changes Changes in the API for client libraries iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants