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

solana-ibc: store proof of client id together with client state #113

Merged
merged 4 commits into from
Nov 20, 2023
Merged

Conversation

mina86
Copy link
Collaborator

@mina86 mina86 commented Nov 20, 2023

As we parse client ids we strip out the client type. This means
that ‘foo-42’ and ‘bar-42’ are internally represented as 42. To
avoid confusion, we keep the client ids in private storage and
whenever we index client data by the number we check that the
full client id matches.

However, that information isn’t currently available in provable
storage (i.e. it’s not verifiable by light clients).

Change hash we’re storing under client state path to include the
client id. This way, light clients will be able to verify that
indexes they’re extracting from the client id match the client id
they are given.

Issue: #35

As we parse client ids we strip out the client type.  This means that
‘foo-42’ and ‘bar-42’ are internally represented as 42.  To avoid
confusion, we keep the client ids in private storage and whenever we
index client data by the number we check that the full client id
matches.

However, that information isn’t currently available in provable
storage (i.e. it’s not verifiable by light clients).

Change hash we’re storing under client state path to include the
client id.  This way, light clients will be able to verify that
indexes they’re extracting from the client id match the client id they
are given.

Issue: #35
@mina86 mina86 enabled auto-merge (squash) November 20, 2023 13:58
@mina86 mina86 requested review from blasrodri and dhruvja November 20, 2023 13:58
common/lib/src/hash.rs Outdated Show resolved Hide resolved
mina86 and others added 3 commits November 20, 2023 18:02
Co-authored-by: Dhruv D Jain <[email protected]>
Signed-off-by: Michal Nazarewicz <[email protected]>
@mina86 mina86 merged commit f8143cd into master Nov 20, 2023
5 checks passed
@mina86 mina86 deleted the mpn/c branch November 20, 2023 17:12
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

Successfully merging this pull request may close these issues.

3 participants