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

Bubble ID provider should support multiple types #8

Open
dnpotter opened this issue Jan 24, 2024 · 0 comments
Open

Bubble ID provider should support multiple types #8

dnpotter opened this issue Jan 24, 2024 · 0 comments

Comments

@dnpotter
Copy link
Contributor

At its heart, Bubble Protocol can be layered on top of any existing off-chain storage system, whether private server, cloud server, server cooperative, P2P network. Currently the provider field within a Bubble ID should supports a single url. This does not directly support cooperatives, P2P networks or other systems with multiple endpoints.

Consider adding a type field to the provider to allow for future expansion. E.g.:

const bubbleId = new ContentID({
    chain: 84531,
    contract: '0x22465eb700cd2629d0811208d428884b1de36fb5',
    provider: {
        type: 'url',
        url: 'https://vault.bubbleprotocol.com/v2/base-goerli'
    }
});

Alternatively use the provider's URI scheme to introduce new types.

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