mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
fixed mock passport data in generateCircuitInputsRegister
This commit is contained in:
@@ -11,6 +11,7 @@ import { getLeaf } from "./pubkeyTree";
|
||||
import serializedTree from "../../pubkeys/serialized_tree.json";
|
||||
import { poseidon2, poseidon6 } from "poseidon-lite";
|
||||
import { packBytes } from "../utils/utils";
|
||||
import { mockPassportData_sha256WithRSAEncryption_65537 } from "./mockPassportData";
|
||||
|
||||
export function generateCircuitInputsRegister(
|
||||
secret: string,
|
||||
@@ -23,10 +24,10 @@ export function generateCircuitInputsRegister(
|
||||
|
||||
if (options.developmentMode) {
|
||||
tree.insert(getLeaf({
|
||||
signatureAlgorithm: passportData.signatureAlgorithm,
|
||||
signatureAlgorithm: mockPassportData_sha256WithRSAEncryption_65537.signatureAlgorithm,
|
||||
issuer: 'C = TS, O = Government of Syldavia, OU = Ministry of tests, CN = CSCA-TEST',
|
||||
modulus: passportData.pubKey.modulus,
|
||||
exponent: passportData.pubKey.exponent
|
||||
modulus: mockPassportData_sha256WithRSAEncryption_65537.pubKey.modulus,
|
||||
exponent: mockPassportData_sha256WithRSAEncryption_65537.pubKey.exponent
|
||||
}).toString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user