Hacked By AnonymousFox

Current Path : /opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules/sigstore/dist/ca/
Upload File :
Current File : //opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules/sigstore/dist/ca/format.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toCertificateRequest = void 0;
function toCertificateRequest(identityToken, publicKey, challenge) {
    return {
        credentials: {
            oidcIdentityToken: identityToken,
        },
        publicKeyRequest: {
            publicKey: {
                algorithm: 'ECDSA',
                content: publicKey
                    .export({ format: 'pem', type: 'spki' })
                    .toString('ascii'),
            },
            proofOfPossession: challenge.toString('base64'),
        },
    };
}
exports.toCertificateRequest = toCertificateRequest;

Hacked By AnonymousFox1.0, Coded By AnonymousFox