* Creates a JSON object that contains the given CID and the current time as * a timestamp. * @param {string} cidString * @return {string}
(cidString)
| 614 | * @return {string} |
| 615 | */ |
| 616 | function createCidData(cidString) { |
| 617 | return JSON.stringify({ |
| 618 | 'time': Date.now(), |
| 619 | 'cid': cidString, |
| 620 | }); |
| 621 | } |
| 622 | |
| 623 | /** |
| 624 | * Gets the persisted CID data as a promise. It tries to read from |