-
Notifications
You must be signed in to change notification settings - Fork 72
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
Sign json data representation rather than image #15
Comments
Yep. you could just make a XML document of the file and hash that, then use the XML data to make the design of the final. Then put the hash of both in the blockchain meaning they could create child designs as much as they wanted as long as the underlying data didn't change. |
Actually looking again I did specify the creation of an HTML document in the original design because my thinking at the time was that this would be a hosted service by someone at Keybase or other similar company. So in fact let's just broaden it and say it can be in XML or JSON. I prefer XML as a data-interchange format because it meets one of the goals of the project which is to help non-programmers to understand the underlying technology; to give them more control and autonomy when using such important tools. If we ask the user to hash the XML and the image it produces an extra step but I think the payoff is greater, as you say, which is that they can change up the design which may broaden its appeal and make the process seem a bit magical. And perhaps we can streamline the process in to a script so that it becomes drag and drop like http://proofofexistence.com/. What would be important now is to make sure that the documentation first guides the user through through the manual process so that they understand what the pretty automation wrapper will be doing when they hit run. This will ensure they don't grow complacent and outsource all the power to the developers. I will update the readme, what do you think? |
Hm. Need to re-read the current process (which I'll try to do later today), but my first thoughts:
|
Actually I did a quick (very unscientific) survey and 1 person say they preferred XML but two said JSON hands down. Also we can use JSON as the data object and just has that as I have learned that you can put the binary of the JPG in to it, is that right? I am not a coder, but I am learning fast : ) |
im a programmer and i have never seen a binary jpg or any binary file inside a json file(not in python, not in javascript, not in java, at least those who i have enough experience to be sure), i think is not possible, you can handle images by using the url of the image(absolute or relative), plus, json is much more user-friendly than xml, but xml actually supports binary files inside. please, check this, is very confusing(i just started looking for if json could support images as binary inside). |
https://github.com/MrChrisJ/World-Citizenship#step-6
Just thinking that signing the image is a little fuzzy. We don't care if someone redesigns their card or optimizes the image compression -- we care if they changed the underlying data that the card represents. So maybe we could write a spec for the json data object that will be used to generate the html of the passport?
Thoughts?
The text was updated successfully, but these errors were encountered: