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

Change registry to store assets by (base64) ID #6

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

hdevalence
Copy link
Contributor

Instead of having the assets in a flat list, I think it will be more useful for consumers if they have a map, since the point is to be able to look up assets by ID. I used the Base64 encoding of the AssetId proto's inner field, on the theory that this is the most accessible thing for code that doesn't have access to Penumbra structure but wants to interpret an AssetId anyways.

Instead of having the assets in a flat list, I think it will be more useful for
consumers if they have a map, since the point is to be able to look up assets
by ID. I used the Base64 encoding of the `AssetId` proto's `inner` field, on
the theory that this is the most accessible thing for code that doesn't have
access to Penumbra structure but wants to interpret an `AssetId` anyways.
@hdevalence hdevalence requested a review from grod220 April 11, 2024 04:53
@hdevalence hdevalence merged commit 9f1454f into main Apr 11, 2024
3 checks passed
@grod220 grod220 deleted the asset-by-id branch April 11, 2024 09:19
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.

1 participant