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

Add Iterator feature support for contracts #949

Open
Cashmaney opened this issue Jul 5, 2022 · 1 comment
Open

Add Iterator feature support for contracts #949

Cashmaney opened this issue Jul 5, 2022 · 1 comment

Comments

@Cashmaney
Copy link
Member

It's about time we start supporting the iterator flag - this will bring us up to par with most of the Cosmwasm v1 feature set (excluding raw queries), and support for most of the stuff in the cosmwasm-plus storage package.

To support this flag afaik we need to add support for the scan_db and db_next calls, which shouldn't be too difficult. Our keys are encrypted, so the standard behaviour can't be lifted 1:1 from Cosmwasm, but I suspect there probably won't be too much difference.

@assafmo
Copy link
Member

assafmo commented Jul 5, 2022

The main issue here is that in order to decrypt the key-value pair, the contract must know what's the key beforehand. Also, the encrypted key is actually encrypted after being sha256ed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants