REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.06 KB
Close
//opt/alt/alt-nodejs18/root/usr/lib/node_modules/npm/node_modules/@sigstore/verify/dist/bundle/index.js
Text
Base64
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.signatureContent = exports.toSignedEntity = void 0; const core_1 = require("@sigstore/core"); const dsse_1 = require("./dsse"); const message_1 = require("./message"); function toSignedEntity(bundle, artifact) { const { tlogEntries, timestampVerificationData } = bundle.verificationMaterial; const timestamps = []; for (const entry of tlogEntries) { timestamps.push({ $case: 'transparency-log', tlogEntry: entry, }); } for (const ts of timestampVerificationData?.rfc3161Timestamps ?? []) { timestamps.push({ $case: 'timestamp-authority', timestamp: core_1.RFC3161Timestamp.parse(ts.signedTimestamp), }); } return { signature: signatureContent(bundle, artifact), key: key(bundle), tlogEntries, timestamps, }; } exports.toSignedEntity = toSignedEntity; function signatureContent(bundle, artifact) { switch (bundle.content.$case) { case 'dsseEnvelope': return new dsse_1.DSSESignatureContent(bundle.content.dsseEnvelope); case 'messageSignature': return new message_1.MessageSignatureContent(bundle.content.messageSignature, artifact); } } exports.signatureContent = signatureContent; function key(bundle) { switch (bundle.verificationMaterial.content.$case) { case 'publicKey': return { $case: 'public-key', hint: bundle.verificationMaterial.content.publicKey.hint, }; case 'x509CertificateChain': return { $case: 'certificate', certificate: core_1.X509Certificate.parse(bundle.verificationMaterial.content.x509CertificateChain .certificates[0].rawBytes), }; case 'certificate': return { $case: 'certificate', certificate: core_1.X509Certificate.parse(bundle.verificationMaterial.content.certificate.rawBytes), }; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
dsse.js
1.48 KB
lrw-r--r--
2026-03-09 09:08:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
2.06 KB
lrw-r--r--
2026-03-09 09:08:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
message.js
1.32 KB
lrw-r--r--
2026-03-09 09:08:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).