mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
Merge branch 'dev' of https://github.com/zk-passport/openpassport into frontend-optimization
This commit is contained in:
@@ -3,7 +3,7 @@ import * as forge from "node-forge";
|
||||
import { bytesToBigDecimal, extractRSFromSignature, getNAndK, getNAndKCSCA, hexToDecimal, splitToWords } from "./utils";
|
||||
import { CSCA_TREE_DEPTH, MODAL_SERVER_ADDRESS } from "../constants/constants";
|
||||
import { poseidon2 } from "poseidon-lite";
|
||||
import { IMT } from "@zk-kit/imt";
|
||||
import { IMT } from "@openpassport/zk-kit-imt";
|
||||
import serialized_csca_tree from "../../pubkeys/serialized_csca_tree.json"
|
||||
import axios from "axios";
|
||||
import { parseCertificate } from "./certificates/handleCertificate";
|
||||
|
||||
@@ -21,10 +21,10 @@ import {
|
||||
formatCountriesList,
|
||||
} from './utils';
|
||||
import { generateCommitment, getLeaf } from "./pubkeyTree";
|
||||
import { LeanIMT } from "@zk-kit/imt";
|
||||
import { LeanIMT } from "@openpassport/zk-kit-lean-imt";
|
||||
import { getCountryLeaf, getNameLeaf, getNameDobLeaf, getPassportNumberLeaf } from "./smtTree";
|
||||
import { packBytes } from "../utils/utils";
|
||||
import { SMT } from "@ashpect/smt"
|
||||
import { SMT } from "@openpassport/zk-kit-smt"
|
||||
import { parseCertificate } from './certificates/handleCertificate';
|
||||
|
||||
export function generateCircuitInputsDisclose(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PUBKEY_TREE_DEPTH, COMMITMENT_TREE_TRACKER_URL, SignatureAlgorithmIndex } from "../constants/constants";
|
||||
import { LeanIMT } from '@zk-kit/imt'
|
||||
import { LeanIMT } from '@openpassport/zk-kit-lean-imt'
|
||||
import axios from "axios";
|
||||
import { poseidon16, poseidon2, poseidon6, poseidon7 } from 'poseidon-lite';
|
||||
import { formatDg2Hash, getNAndK, getNAndKCSCA, hexToDecimal, splitToWords } from './utils';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { poseidon9, poseidon3, poseidon2, poseidon6, poseidon13 } from "poseidon-lite"
|
||||
import { stringToAsciiBigIntArray } from "./utils";
|
||||
import { ChildNodes, SMT } from "@ashpect/smt"
|
||||
import { ChildNodes, SMT } from "@openpassport/zk-kit-smt"
|
||||
|
||||
// SMT trees for 3 levels :
|
||||
// 1. Passport tree : level 3 (Absolute Match)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { LeanIMT } from '@zk-kit/imt';
|
||||
import { LeanIMT } from '@openpassport/zk-kit-lean-imt';
|
||||
import { sha256 } from 'js-sha256';
|
||||
import { sha1 } from 'js-sha1';
|
||||
import { sha384, sha512_256 } from 'js-sha512';
|
||||
import { SMT } from '@ashpect/smt';
|
||||
import { SMT } from '@openpassport/zk-kit-smt';
|
||||
import forge from 'node-forge';
|
||||
import { n_dsc, k_dsc, n_dsc_ecdsa, k_dsc_ecdsa, n_csca, k_csca, attributeToPosition } from '../constants/constants';
|
||||
import { unpackReveal } from './revealBitmap';
|
||||
|
||||
Reference in New Issue
Block a user