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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely portable schema #269

Closed
sandreae opened this issue Feb 2, 2023 · 2 comments
Closed

Extremely portable schema #269

sandreae opened this issue Feb 2, 2023 · 2 comments

Comments

@sandreae
Copy link
Member

sandreae commented Feb 2, 2023

Possibly a terrible idea, but I'm logging it here incase there is some value 馃槣

I was considering a case where you are a client app developer and there are several schema associated with your app. You want to publish the code for your app, let people download it, and run it locally on their device, possibly against a fresh aquadoggo or similar node implementation. You don't know if this node is on the same network as you, or even if it is completely isolated. You really want the app to be running against exactly the schema you published though, so that when it joins up with networks, they will be refering to the same schema, and therefore the already published data will all sync up nice and neat.

How do you share the schema along with your app?

You could package the actual signed encoded entries which create the schema along with the app! Commit them to the repo in a config file or whatever... Then when the client app starts up, it attempts to publish them. If it succeeds, great, we now have the schema! If it fails, then something (possibly this schema) already existed for this public_key/log combination.

It conflicts with our current restrictions around publish (one node per key pair, incrementing log id), but it's pretty neat, I think!

@adzialocha
Copy link
Member

Yeah! I think that idea also popped up in combination with fishy fishy. You get a schema.lock file which contains the signed data you need to redeploy the schema on every node.

@sandreae
Copy link
Member Author

sandreae commented Feb 3, 2023

Yeh, wasn't sure if that was the same idea, or if it was more like a "recipe" to publish the schema yourself.

Glad it overlaps with other thoughts though 馃槣

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