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

Missing iteration interface for storage::HashMap #317

Closed
bedeho opened this issue Feb 4, 2020 · 1 comment
Closed

Missing iteration interface for storage::HashMap #317

bedeho opened this issue Feb 4, 2020 · 1 comment
Labels
A-ink_storage [ink_storage] Work Item B-enhancement New feature or request

Comments

@bedeho
Copy link

bedeho commented Feb 4, 2020

For normal runtime modules, decl_storage offers the linked_map variant, which allows iteration of mappings. The HashMap collection currently offered has no such iteration.
Importantly, Vec and BTreeMap style storage containers are not a good alternative in all contexts, because they do not have sublinear running time on insertion/deletion, and no light client proofs for individual elements or mappings, respectively.

@Robbepop Robbepop changed the title Misssing iterable storage map Missing iteration interface for storage::HashMap Feb 4, 2020
@Robbepop Robbepop added A-ink_storage [ink_storage] Work Item B-enhancement New feature or request labels Feb 7, 2020
@Robbepop
Copy link
Collaborator

This is indirectly superseeded by #347 since making the hash map aware of its keys will also allow iteration. Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ink_storage [ink_storage] Work Item B-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants