This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/ | |
/** | |
* Fetch and log a request | |
* @param {Request} request | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A challenge. | |
Prove that a file or hash uploaded to stamp.io, and the certificate page that stamp.io provides, can | |
be used to unequivocally, deterministically, and mathematically prove that the file existed | |
on or before the timestamp in the certificate. | |
The answer code: | |
Sample code in pure javascript, executed with node, using the current stampery NPM package installed from npmjs.org. | |
All dependencies should be only an 'npm install' away and run with e.g. 'npm test'. |