Skip to content

Commit

Permalink
Merge pull request ONDC-Official#55 from nishthamongaondc/main
Browse files Browse the repository at this point in the history
ref: Update index.js
  • Loading branch information
92shreyansh authored Dec 29, 2023
2 parents 07fd00c + 9269087 commit 7370364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/on_subscibe-service/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const htmlFile = `
`;
// Pre-defined public and private keys
const privateKey = crypto.createPrivateKey({
key: Buffer.from(PRIVATE_KEY_1, 'base64'), // Decode private key from base64
key: Buffer.from(ENCRYPTION_PRIVATE_KEY, 'base64'), // Decode private key from base64
format: 'der', // Specify the key format as DER
type: 'pkcs8', // Specify the key type as PKCS#8
});
const publicKey = crypto.createPublicKey({
key: Buffer.from(PUBLIC_KEY_1, 'base64'), // Decode public key from base64
key: Buffer.from(ONDC_PUBLIC_KEY, 'base64'), // Decode public key from base64
format: 'der', // Specify the key format as DER
type: 'spki', // Specify the key type as SubjectPublicKeyInfo (SPKI)
});
Expand Down

0 comments on commit 7370364

Please sign in to comment.