danhab99 / cryptochan Goto Github PK
View Code? Open in Web Editor NEWHome Page: cryptochan.vercel.app
License: MIT License
Home Page: cryptochan.vercel.app
License: MIT License
can't post when trying to construct the json manually
this is what i tried:
{"author":{"name":"Jtaqu","publickey":"e0aaca02e9fdd424"},"body":{"content":"second","mimetype":"text/plain"},"category":"all","embeds":[],"hash":{"algorithm":"SHA-256","value":"e111f804ea2740211820d015f6a6a86a50508a28b38c968e72bb68839176de13"},"parenthash":"b804da0898e33399dd8cb15776a58c4626185c9b598ce56207e0577e68ce698d","published":"2021-06-28T16:45:21.480Z","signature":"-----BEGIN PGP SIGNATURE-----\n\niHUEABYIAB0WIQTsilfAn0jgQ7sIzP7gqsoC6f3UJAUCYNn8cAAKCRDgqsoC6f3U\nJASIAP0W4i7tZ6aB+fNl1HGsAnycAv1OaGsAfd1XACoVZOFoWgD7BjB2BnF8ZxOv\npsME384Dddc80xAsw4FbVy+I1OAsWAo=\n=srqP\n-----END PGP SIGNATURE-----\n"}
gave me an empty 401 json response
my first guess was that it's related to the hashing because while i can verify the signature of 4bxog in "all", i can't verify the hash
iiuc this should have resulted in "b804da0898e33399dd8cb15776a58c4626185c9b598ce56207e0577e68ce698d":
~> jq -c '.[] |del(.hash, .__v, .replies, .replyThreads, .approved)' < reply.json | json-stable-stringify | sha256sum
28719295c297db5f7a2004d861710fbba82b1d0434620ace2e8f64edc21854f9 -
i then proceeded to try to post via the form with both gnupg- and website-generated keys but neither worked, getting 401s and 404s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.