Make web UI accept GET/POST parameters?
janx opened this issue · comments
So other websites could create a link for users to click. The link will redirect users to your web UI tool with user's root/partial_tree json filled and verified.
Ok, I will implement this eventually but meanwhile, I have written an extension that verifies the proof automatically if you use the proper meta tags. See https://github.com/olalonde/solvency-verifier-extension
For testing: http://solvencydemo.syskall.com
It's a bit buggy at the moment.
Hey @janx I have just implemented something like this but I didn't use GET/POST parameters because the site is hosted on Github and only static HTML pages are allowed. That being said, you can create a link that your users can use that way:
Where PARTIAL_TREE is a URI encoded partial tree and EXPECTED_ROOT is a URI encoded root. In Ruby: http://ruby-doc.org/stdlib-1.9.3/libdoc/uri/rdoc/URI/Escape.html
Example:
Works great, thanks! 🍺