File Explorer

/var/lang/lib/node_modules/npm/node_modules/@sigstore/verify/dist/timestamp

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

index.js822 B · 25 lines
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.getTSATimestamp = getTSATimestamp;exports.getTLogTimestamp = getTLogTimestamp;const tsa_1 = require("./tsa");function getTSATimestamp(timestamp, data, timestampAuthorities) {    (0, tsa_1.verifyRFC3161Timestamp)(timestamp, data, timestampAuthorities);    return {        type: 'timestamp-authority',        logID: timestamp.signerSerialNumber,        timestamp: timestamp.signingTime,    };}function getTLogTimestamp(entry) {    // Only entries with an inclusion promise provide a verifiable timestamp    if (!entry.inclusionPromise) {        return undefined;    }    return {        type: 'transparency-log',        logID: entry.logId.keyId,        timestamp: new Date(Number(entry.integratedTime) * 1000),    };}