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

feat: well-defined storage format #22

Open
erhant opened this issue Nov 4, 2024 · 0 comments
Open

feat: well-defined storage format #22

erhant opened this issue Nov 4, 2024 · 0 comments

Comments

@erhant
Copy link
Member

erhant commented Nov 4, 2024

Right now we simply check the input string, and if its 64 character hexadecimal string we treat it as an Arweave txid, doing some transformations etc.

It should be easier parse a JSON string like {type: String, key: String} instead, and if type == "Arweave" then simply use arweave.net/{key} to download it; the key is therefore a base64url encoded string in this case. This opens up the way for alternative storage providers as well, (Codex / Walrus)

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

1 participant