mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
clean code
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import { sha1Pad, sha256Pad } from "./shaPad";
|
||||
import * as forge from "node-forge";
|
||||
import { splitToWords } from "./utils";
|
||||
import { CSCA_AKI_MODULUS, CSCA_TREE_DEPTH, MODAL_SERVER_ADDRESS, PUBKEY_TREE_DEPTH } from "../constants/constants";
|
||||
import { poseidon1, poseidon16, poseidon2, poseidon3, poseidon4 } from "poseidon-lite";
|
||||
import { CSCA_AKI_MODULUS, CSCA_TREE_DEPTH } from "../constants/constants";
|
||||
import { poseidon16, poseidon2, poseidon4 } from "poseidon-lite";
|
||||
import { IMT } from "@zk-kit/imt";
|
||||
import serialized_csca_tree from "../../pubkeys/serialized_csca_tree.json"
|
||||
import { castCSCAProof } from "./types";
|
||||
|
||||
|
||||
export function findStartIndex(modulus: string, messagePadded: Uint8Array): number {
|
||||
const modulusNumArray = [];
|
||||
|
||||
@@ -2,7 +2,7 @@ import { poseidon10, poseidon2, poseidon8 } from "poseidon-lite"
|
||||
import { SignatureAlgorithm, PUBKEY_TREE_DEPTH } from "../constants/constants";
|
||||
import { IMT } from '@zk-kit/imt'
|
||||
import { splitToWords } from "./utils";
|
||||
import { bigIntToChunkedBytes, formatSigAlgNameForCircuit } from "./utils";
|
||||
import { formatSigAlgNameForCircuit } from "./utils";
|
||||
import { toStandardName } from "./formatNames";
|
||||
|
||||
export function buildPubkeyTree(pubkeys: any[]) {
|
||||
|
||||
Reference in New Issue
Block a user