repo_id
stringclasses
563 values
file_path
stringlengths
40
166
content
stringlengths
1
2.94M
__index_level_0__
int64
0
0
solana_public_repos/Lightprotocol/light-protocol/js
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/.eslintrc.json
{ "root": true, "ignorePatterns": ["node_modules", "lib"], "parser": "@typescript-eslint/parser", "parserOptions": { "project": ["./tsconfig.json", "./tsconfig.test.json"] }, "plugins": ["@typescript-eslint"], "extends": [ "eslint:recommended", "plugin:@typescript-esl...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/approve-and-mint-to.test.ts
import { describe, it, expect, beforeAll, assert } from 'vitest'; import { PublicKey, Signer, Keypair, SystemProgram } from '@solana/web3.js'; import { MINT_SIZE, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, createInitializeMint2Instruction, } from '@solana/spl-token'; import { approveAndMintTo, createToken...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/merge-token-accounts.test.ts
import { describe, it, expect, beforeAll, beforeEach } from 'vitest'; import { PublicKey, Keypair, Signer } from '@solana/web3.js'; import { Rpc, bn, defaultTestStateTreeAccounts, newAccountWithLamports, getTestRpc, } from '@lightprotocol/stateless.js'; import { WasmFactory } from '@lightprotocol/ha...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/create-mint.test.ts
import { describe, it, expect, beforeAll, assert } from 'vitest'; import { CompressedTokenProgram } from '../../src/program'; import { PublicKey, Signer, Keypair } from '@solana/web3.js'; import { unpackMint, unpackAccount } from '@solana/spl-token'; import { createMint } from '../../src/actions'; import { Rpc, ...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/transfer.test.ts
import { describe, it, expect, beforeAll, beforeEach, assert } from 'vitest'; import { PublicKey, Keypair, Signer } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { ParsedTokenAccount, Rpc, bn, defaultTestStateTreeAccounts, newAccountWithLamports, getTestRpc, } from '@lig...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/compress.test.ts
import { describe, it, expect, beforeAll } from 'vitest'; import { PublicKey, Keypair, Signer, ComputeBudgetProgram, } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { ParsedTokenAccount, Rpc, bn, defaultTestStateTreeAccounts, newAccountWithLamports, dedup...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/mint-to.test.ts
import { describe, it, expect, beforeAll } from 'vitest'; import { PublicKey, Signer, Keypair, ComputeBudgetProgram, } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { createMint, createTokenProgramLookupTable, mintTo, } from '../../src/actions'; import { getTest...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/decompress.test.ts
import { describe, it, expect, beforeAll } from 'vitest'; import { PublicKey, Keypair, Signer } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { ParsedTokenAccount, Rpc, bn, defaultTestStateTreeAccounts, newAccountWithLamports, getTestRpc, } from '@lightprotocol/stateless...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/custom-program-id.test.ts
import { describe, it, expect } from 'vitest'; import { CompressedTokenProgram } from '../../src/program'; import { PublicKey } from '@solana/web3.js'; describe('custom programId', () => { it('should switch programId', async () => { const defaultProgramId = new PublicKey( 'cTokenmWW8bLPjZEBAUgY...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/compress-spl-token-account.test.ts
import { describe, it, expect, beforeAll, assert } from 'vitest'; import { PublicKey, Keypair, Signer } from '@solana/web3.js'; import { Rpc, bn, defaultTestStateTreeAccounts, newAccountWithLamports, getTestRpc, } from '@lightprotocol/stateless.js'; import { createMint, decompress, mintT...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/rpc-token-interop.test.ts
import { describe, it, assert, beforeAll } from 'vitest'; import { Keypair, PublicKey, Signer } from '@solana/web3.js'; import { Rpc, newAccountWithLamports, bn, createRpc, getTestRpc, TestRpc, } from '@lightprotocol/stateless.js'; import { WasmFactory } from '@lightprotocol/hasher.rs'; import {...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/tests/e2e/create-token-pool.test.ts
import { describe, it, expect, beforeAll, assert } from 'vitest'; import { CompressedTokenProgram } from '../../src/program'; import { PublicKey, Signer, Keypair, SystemProgram } from '@solana/web3.js'; import { unpackMint, unpackAccount, MINT_SIZE, TOKEN_PROGRAM_ID, createInitializeMint2Instruction...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/program.ts
import { PublicKey, Keypair, TransactionInstruction, SystemProgram, Connection, AddressLookupTableProgram, AccountMeta, } from '@solana/web3.js'; import { BN, Program, AnchorProvider, setProvider } from '@coral-xyz/anchor'; import { IDL, LightCompressedToken } from './idl/light_compressed_to...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/types.ts
import { PublicKey } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { CompressedProof } from '@lightprotocol/stateless.js'; /// TODO: remove index_mt_account on-chain. passed as part of /// CompressedTokenInstructionDataInvoke export type TokenTransferOutputData = { /** * The owner of ...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/constants.ts
export const POOL_SEED = Buffer.from('pool'); export const CPI_AUTHORITY_SEED = Buffer.from('cpi_authority'); export const SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE = 1461600;
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/index.ts
export * from './idl'; export * from './instructions'; export * from './constants'; export * from './program'; export * from './types'; export * from './actions';
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/idl/index.ts
export * from './light_compressed_token';
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/idl/light_compressed_token.ts
export type LightCompressedToken = { version: '1.2.0'; name: 'light_compressed_token'; instructions: [ { name: 'createTokenPool'; docs: [ 'This instruction creates a token pool for a given mint. Every spl mint', 'can have one token pool. When a...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/instructions/pack-compressed-token-accounts.ts
import { ParsedTokenAccount, InputTokenDataWithContext, getIndexOrAdd, bn, padOutputStateMerkleTrees, TokenTransferOutputData, } from '@lightprotocol/stateless.js'; import { PublicKey, AccountMeta } from '@solana/web3.js'; import { PackedTokenTransferOutputData } from '../types'; export type Pa...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/instructions/index.ts
export * from './pack-compressed-token-accounts';
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/create-token-pool.ts
import { ConfirmOptions, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { CompressedTokenProgram } from '../program'; import { Rpc, buildAndSignTx, sendAndConfirmTx, } from '@lightprotocol/stateless.js'; /** * Register an existing mint with the CompressedToken pr...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/create-mint.ts
import { ConfirmOptions, Keypair, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { CompressedTokenProgram } from '../program'; import { MINT_SIZE, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, } from '@solana/spl-token'; import { Rpc, buildAndSignTx, sen...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/create-token-program-lookup-table.ts
import { PublicKey, Signer, TransactionSignature } from '@solana/web3.js'; import { sendAndConfirmTx, buildAndSignTx, Rpc, dedupeSigner, } from '@lightprotocol/stateless.js'; import { CompressedTokenProgram } from '../program'; /** * Create a lookup table for the token program's default accounts * ...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/mint-to.ts
import { ComputeBudgetProgram, ConfirmOptions, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { sendAndConfirmTx, buildAndSignTx, Rpc, dedupeSigner, } from '@lightprotocol/stateless.js'; import { CompressedTokenProgra...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/compress.ts
import { ConfirmOptions, PublicKey, Signer, TransactionSignature, ComputeBudgetProgram, } from '@solana/web3.js'; import { sendAndConfirmTx, buildAndSignTx, Rpc, dedupeSigner, } from '@lightprotocol/stateless.js'; import { BN } from '@coral-xyz/anchor'; import { CompressedTokenProg...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/merge-token-accounts.ts
import { ComputeBudgetProgram, ConfirmOptions, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { Rpc, dedupeSigner, buildAndSignTx, sendAndConfirmTx, bn, } from '@lightprotocol/stateless.js'; import { CompressedTokenProgram } from '../program'; /** * M...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/transfer.ts
import { ComputeBudgetProgram, ConfirmOptions, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { bn, sendAndConfirmTx, buildAndSignTx, Rpc, ParsedTokenAccount, dedupeSigner, } from '@lightprotocol/stateless.js'; import { BN } from '@coral-xyz/anchor...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/approve-and-mint-to.ts
import { ComputeBudgetProgram, ConfirmOptions, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { BN } from '@coral-xyz/anchor'; import { sendAndConfirmTx, buildAndSignTx, Rpc, dedupeSigner, } from '@lightprotocol/stateless.js'; import { CompressedTokenProgra...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/compress-spl-token-account.ts
import { ConfirmOptions, PublicKey, Signer, TransactionSignature, ComputeBudgetProgram, } from '@solana/web3.js'; import { sendAndConfirmTx, buildAndSignTx, Rpc, dedupeSigner, } from '@lightprotocol/stateless.js'; import { BN } from '@coral-xyz/anchor'; import { CompressedTokenProg...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/index.ts
export * from './approve-and-mint-to'; export * from './compress'; export * from './decompress'; export * from './create-mint'; export * from './mint-to'; export * from './merge-token-accounts'; export * from './create-token-pool'; export * from './transfer'; export * from './create-token-program-lookup-table'; export ...
0
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src
solana_public_repos/Lightprotocol/light-protocol/js/compressed-token/src/actions/decompress.ts
import { ComputeBudgetProgram, ConfirmOptions, PublicKey, Signer, TransactionSignature, } from '@solana/web3.js'; import { bn, sendAndConfirmTx, buildAndSignTx, Rpc, dedupeSigner, } from '@lightprotocol/stateless.js'; import { BN } from '@coral-xyz/anchor'; import { CompressedT...
0
solana_public_repos/Lightprotocol/light-protocol
solana_public_repos/Lightprotocol/light-protocol/tsconfig/package.json
{ "name": "@lightprotocol/tsconfig", "version": "0.0.0", "private": true, "files": [ "base.json" ] }
0
solana_public_repos/Lightprotocol/light-protocol
solana_public_repos/Lightprotocol/light-protocol/tsconfig/base.json
{ "$schema": "https://json.schemastore.org/tsconfig", "display": "Default", "compilerOptions": { "composite": false, "declaration": true, "declarationMap": true, "forceConsistentCasingInFileNames": true, "inlineSources": false, "isolatedModules": true, "moduleResolution": "node", "...
0
solana_public_repos/Lightprotocol/light-protocol
solana_public_repos/Lightprotocol/light-protocol/utils/Cargo.toml
[package] name = "light-utils" version = "1.1.0" description = "Common utility functions used in Light Protocol" repository = "https://github.com/Lightprotocol/light-protocol" license = "Apache-2.0" edition = "2021" [dependencies] anyhow = "1.0" ark-ff = "0.4" light-bounded-vec = { version = "1.1.0", path = "../merkle...
0
solana_public_repos/Lightprotocol/light-protocol/utils
solana_public_repos/Lightprotocol/light-protocol/utils/src/bigint.rs
use num_bigint::BigUint; use crate::UtilsError; /// Converts the given [`num_bigint::BigUint`](num_bigint::BigUint) into a little-endian /// byte array. pub fn bigint_to_le_bytes_array<const BYTES_SIZE: usize>( bigint: &BigUint, ) -> Result<[u8; BYTES_SIZE], UtilsError> { let mut array = [0u8; BYTES_SIZE]; ...
0
solana_public_repos/Lightprotocol/light-protocol/utils
solana_public_repos/Lightprotocol/light-protocol/utils/src/fee.rs
use crate::UtilsError; pub fn compute_rollover_fee( rollover_threshold: u64, tree_height: u32, rent: u64, ) -> Result<u64, UtilsError> { let number_of_transactions = 1 << tree_height; if rollover_threshold > 100 { return Err(UtilsError::InvalidRolloverThreshold); } if rollover_thres...
0
solana_public_repos/Lightprotocol/light-protocol/utils
solana_public_repos/Lightprotocol/light-protocol/utils/src/lib.rs
use std::{ env, io::{self, prelude::*}, process::{Command, Stdio}, thread::spawn, }; use ark_ff::PrimeField; use num_bigint::BigUint; use solana_program::keccak::hashv; use thiserror::Error; pub mod bigint; pub mod fee; pub mod offset; pub mod prime; pub mod rand; #[derive(Debug, Error, PartialEq)] ...
0
solana_public_repos/Lightprotocol/light-protocol/utils
solana_public_repos/Lightprotocol/light-protocol/utils/src/prime.rs
/// Finds the lowest prime number which is greater than the provided number /// `n`. pub fn find_next_prime(mut n: u32) -> u32 { // Handle small numbers separately if n <= 2 { return 2; } else if n <= 3 { return 3; } // All prime numbers greater than 3 are of the form 6k + 1 or 6k +...
0
solana_public_repos/Lightprotocol/light-protocol/utils
solana_public_repos/Lightprotocol/light-protocol/utils/src/rand.rs
use std::ops::{Bound, RangeBounds}; use rand::{ distributions::uniform::{SampleRange, SampleUniform}, Rng, }; use crate::prime::find_next_prime; const PRIME_RETRIES: usize = 10; /// Generates a random prime number in the given range. It returns `None` when /// generating such number was not possible. pub fn...
0
solana_public_repos/Lightprotocol/light-protocol/utils/src
solana_public_repos/Lightprotocol/light-protocol/utils/src/offset/copy.rs
use std::{mem, ptr}; use light_bounded_vec::{ BoundedVec, BoundedVecMetadata, CyclicBoundedVec, CyclicBoundedVecMetadata, }; /// Creates a copy of value of type `T` based on the provided `bytes` buffer. /// /// # Safety /// /// This is higly unsafe. This function doesn't ensure alignment and /// correctness of pr...
0
solana_public_repos/Lightprotocol/light-protocol/utils/src
solana_public_repos/Lightprotocol/light-protocol/utils/src/offset/zero_copy.rs
use std::mem; /// Casts a part of provided `bytes` buffer with the given `offset` to a /// mutable pointer to `T`. /// /// Should be used for single values. /// /// # Safety /// /// This is higly unsafe. This function doesn't ensure alignment and /// correctness of provided buffer. The responsibility of such checks is...
0
solana_public_repos/Lightprotocol/light-protocol/utils/src
solana_public_repos/Lightprotocol/light-protocol/utils/src/offset/mod.rs
pub mod copy; pub mod zero_copy;
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/Cargo.toml
[package] name = "light-prover-client" version = "1.2.0" description = "Crate for interacting with Light Protocol circuits" repository = "https://github.com/Lightprotocol/light-protocol" license = "Apache-2.0" edition = "2021" [features] gnark = ["tokio", "reqwest"] default = ["gnark", "devenv"] devenv = [] [dependen...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/tests/gnark.rs
use light_hasher::{Hasher, Poseidon}; use light_merkle_tree_reference::MerkleTree; use light_prover_client::batch_append_with_proofs::get_batch_append_with_proofs_inputs; use light_prover_client::batch_append_with_subtrees::{ calculate_hash_chain, get_batch_append_with_subtrees_inputs, }; use light_prover_client::b...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/scripts/rapidsnark_bench.sh
#!/bin/bash LOG_FILE="execution_times.log" echo "Benchmarking started..." >> $LOG_FILE for ((i=1; i<10; i++)) do echo "Running iteration $i" work_dir="test-data/merkle22_$i" start_time=$(date +%s%6N) prover "$work_dir/circuit.zkey" "$work_dir/22_$i.wtns" "$work_dir/proof_merkle22_$i.json" "$work_dir/p...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/prove_utils.rs
use groth16_solana::decompression::{decompress_g1, decompress_g2}; use crate::errors::CircuitsError; pub struct ProofResult { pub proof: ProofCompressed, pub public_inputs: Vec<[u8; 32]>, } #[derive(Debug)] pub struct ProofCompressed { pub a: [u8; 32], pub b: [u8; 64], pub c: [u8; 32], } impl Pr...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/mock_batched_forester.rs
use std::fmt::Error; use light_hasher::{Hasher, Poseidon}; use light_merkle_tree_reference::MerkleTree; use light_utils::bigint::bigint_to_be_bytes_array; use reqwest::Client; use crate::{ batch_append::calculate_hash_chain, batch_append_2::get_batch_append2_inputs, batch_update::get_batch_update_inputs, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/lib.rs
pub mod batch_address_append; pub mod batch_append_with_proofs; pub mod batch_append_with_subtrees; pub mod batch_update; pub mod combined; pub mod errors; #[cfg(feature = "gnark")] pub mod gnark; pub mod groth16_solana_verifier; pub mod helpers; pub mod inclusion; pub mod init_merkle_tree; pub mod non_inclusion; pub m...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/batch_append_with_proofs.rs
use light_bounded_vec::BoundedVec; use light_concurrent_merkle_tree::changelog::ChangelogEntry; use num_bigint::{BigInt, Sign}; use serde::Serialize; use crate::helpers::compute_root_from_merkle_proof; use crate::{batch_append_with_subtrees::calculate_hash_chain, helpers::bigint_to_u8_32}; #[derive(Debug, Clone, Ser...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/batch_update.rs
use crate::helpers::compute_root_from_merkle_proof; use crate::{batch_append_with_subtrees::calculate_hash_chain, helpers::bigint_to_u8_32}; use light_bounded_vec::BoundedVec; use light_concurrent_merkle_tree::changelog::ChangelogEntry; use light_hasher::{Hasher, Poseidon}; use num_bigint::{BigInt, Sign}; use num_trait...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/batch_append_with_subtrees.rs
use crate::helpers::bigint_to_u8_32; use light_hasher::{Hasher, Poseidon}; use light_merkle_tree_reference::sparse_merkle_tree::SparseMerkleTree; use light_utils::bigint::bigint_to_be_bytes_array; use num_bigint::{BigInt, BigUint, Sign}; use num_traits::FromPrimitive; #[derive(Clone, Debug, Default)] pub struct BatchA...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/helpers.rs
use env_logger::Builder; use light_concurrent_merkle_tree::changelog::ChangelogEntry; use light_hasher::{Hasher, Poseidon}; use log::LevelFilter; use num_bigint::BigInt; pub fn change_endianness(bytes: &[u8]) -> Vec<u8> { let mut vec = Vec::new(); for b in bytes.chunks(32) { for byte in b.iter().rev() ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/errors.rs
use ark_relations::r1cs::SynthesisError; use ark_serialize::SerializationError; use color_eyre::Report; use groth16_solana::errors::Groth16Error; use thiserror::Error; #[derive(Debug, Error)] pub enum CircuitsError { #[error("Error: {0}")] GenericError(String), #[error("Arkworks prover error: {0}")] A...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/groth16_solana_verifier.rs
use groth16_solana::groth16::{Groth16Verifier, Groth16Verifyingkey}; use crate::{errors::CircuitsError, prove_utils::ProofCompressed}; // TODO: move to groth16_solana ? pub fn groth16_solana_verify<const NR_INPUTS: usize>( proof: &ProofCompressed, proof_inputs: &[[u8; 32]; NR_INPUTS], verifyingkey: Groth1...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/init_merkle_tree.rs
use std::sync::Mutex; use ark_std::Zero; use light_hasher::{Hasher, Poseidon}; use light_indexed_merkle_tree::{array::IndexedArray, reference::IndexedMerkleTree}; use light_merkle_tree_reference::MerkleTree; use log::info; use num_bigint::{BigInt, Sign, ToBigUint}; use once_cell::{self, sync::Lazy}; use crate::{ ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/batch_address_append.rs
use crate::helpers::{compute_root_from_merkle_proof, hash_chain}; use light_bounded_vec::BoundedVec; use light_concurrent_merkle_tree::changelog::ChangelogEntry; use light_concurrent_merkle_tree::event::RawIndexedElement; use light_hasher::Poseidon; use light_indexed_merkle_tree::array::IndexedElement; use light_indexe...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/non_inclusion_json_formatter.rs
use crate::gnark::helpers::big_int_to_string; use crate::{ gnark::helpers::create_json_from_struct, init_merkle_tree::non_inclusion_merkle_tree_inputs_26, non_inclusion::merkle_non_inclusion_proof_inputs::{ NonInclusionMerkleProofInputs, NonInclusionProofInputs, }, }; use num_traits::ToPrimitive...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/constants.rs
pub const SERVER_ADDRESS: &str = "http://localhost:3001"; pub const HEALTH_CHECK: &str = "/health"; pub const PROVE_PATH: &str = "/prove";
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/proof_helpers.rs
use serde::{Deserialize, Serialize}; type G1 = ark_bn254::g1::G1Affine; use std::ops::Neg; use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, Compress, Validate}; use num_traits::Num; use solana_program::alt_bn128::compression::prelude::{ alt_bn128_g1_compress, alt_bn128_g2_compress, convert_endianness,...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/batch_address_append_json_formatter.rs
use crate::batch_address_append::BatchAddressAppendInputs; use crate::gnark::helpers::{big_uint_to_string, create_json_from_struct}; use serde::Serialize; #[derive(Debug, Clone, Serialize)] pub struct BatchAddressAppendInputsJson { #[serde(rename = "BatchSize")] pub batch_size: usize, #[serde(rename = "Has...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/batch_append_with_subtrees_json_formatter.rs
use crate::batch_append_with_subtrees::BatchAppendWithSubtreesCircuitInputs; use crate::gnark::helpers::{big_int_to_string, create_json_from_struct}; use num_traits::ToPrimitive; use serde::Serialize; #[derive(Serialize, Debug)] pub struct BatchAppendWithSubtreesJsonStruct { #[serde(rename(serialize = "publicInput...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/batch_append_with_proofs_json_formatter.rs
use serde::Serialize; use crate::batch_append_with_proofs::BatchAppendWithProofsCircuitInputs; use super::helpers::{big_int_to_string, create_json_from_struct}; #[derive(Debug, Clone, Serialize)] pub struct BatchAppendWithProofsInputsJson { #[serde(rename = "publicInputHash")] public_input_hash: String, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/inclusion_json_formatter.rs
use crate::gnark::helpers::{big_int_to_string, create_json_from_struct}; use crate::{ inclusion::{ merkle_inclusion_proof_inputs::{InclusionMerkleProofInputs, InclusionProofInputs}, merkle_tree_info::MerkleTreeInfo, }, init_merkle_tree::inclusion_merkle_tree_inputs, }; use num_traits::ToPrim...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/helpers.rs
use log::info; use std::{ ffi::OsStr, fmt::{Display, Formatter}, process::Command, sync::atomic::{AtomicBool, Ordering}, time::Duration, }; use crate::gnark::constants::{HEALTH_CHECK, SERVER_ADDRESS}; use num_bigint::{BigInt, BigUint}; use num_traits::ToPrimitive; use serde::Serialize; use serde_js...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/mod.rs
pub mod batch_address_append_json_formatter; pub mod batch_append_with_proofs_json_formatter; pub mod batch_append_with_subtrees_json_formatter; pub mod batch_update_json_formatter; pub mod combined_json_formatter; pub mod constants; pub mod helpers; pub mod inclusion_json_formatter; pub mod non_inclusion_json_formatte...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/gnark/batch_update_json_formatter.rs
use crate::{ batch_update::BatchUpdateCircuitInputs, gnark::helpers::{big_int_to_string, create_json_from_struct}, }; use serde::Serialize; #[derive(Serialize, Debug)] pub struct BatchUpdateProofInputsJson { #[serde(rename(serialize = "publicInputHash"))] pub public_input_hash: String, #[serde(rena...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/inclusion/merkle_inclusion_proof_inputs.rs
use crate::helpers::bigint_to_u8_32; use num_bigint::BigInt; #[derive(Clone, Debug)] pub struct InclusionMerkleProofInputs { pub root: BigInt, pub leaf: BigInt, pub path_index: BigInt, pub path_elements: Vec<BigInt>, } impl InclusionMerkleProofInputs { pub fn public_inputs_arr(&self) -> [[u8; 32];...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/inclusion/mod.rs
pub mod merkle_inclusion_proof_inputs; pub mod merkle_tree_info;
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/inclusion/merkle_tree_info.rs
use std::fmt; #[derive(Clone, Debug)] pub enum MerkleTreeInfo { H26, } impl MerkleTreeInfo { pub fn height(&self) -> u8 { match self { MerkleTreeInfo::H26 => 26, } } pub fn test_zk_path(&self, num_of_utxos: usize) -> String { format!( "test-data/i_{}_{}...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/non_inclusion/mod.rs
pub mod merkle_non_inclusion_proof_inputs;
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/light-prover-client/src/non_inclusion/merkle_non_inclusion_proof_inputs.rs
use crate::helpers::bigint_to_u8_32; use light_indexed_merkle_tree::array::IndexedArray; use num_bigint::{BigInt, BigUint}; use num_traits::ops::bytes::FromBytes; #[derive(Clone, Debug)] pub struct NonInclusionMerkleProofInputs { pub root: BigInt, pub value: BigInt, pub leaf_lower_range_value: BigInt, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/Cargo.toml
[package] name = "light-verifier" version = "1.1.0" description = "ZKP proof verifier used in Light Protocol" repository = "https://github.com/Lightprotocol/light-protocol" license = "Apache-2.0" edition = "2021" [features] solana = ["solana-program"] [dependencies] groth16-solana = "0.0.3" thiserror = "1.0" borsh = ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/tests/test.rs
#[cfg(test)] mod test { use light_prover_client::gnark::helpers::{ProofType, ProverConfig}; use light_prover_client::{ gnark::{ constants::{PROVE_PATH, SERVER_ADDRESS}, helpers::{kill_prover, spawn_prover}, inclusion_json_formatter::inclusion_inputs_string, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/lib.rs
use borsh::{BorshDeserialize, BorshSerialize}; use groth16_solana::decompression::{decompress_g1, decompress_g2}; use groth16_solana::groth16::{Groth16Verifier, Groth16Verifyingkey}; use thiserror::Error; pub mod verifying_keys; #[derive(Debug, Error)] pub enum VerifierError { #[error("PublicInputsTryIntoFailed")]...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_26_1.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 6u8, 11u8, 13u8, 147u8, 169u8, 154u8, 25u8, 26u8, 169u8, 97u8, 199u8, 74u8, 47u8, 169u8...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_proofs_26_10.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 45u8, 48u8, 253u8, 51u8, 251u8, 66u8, 133u8, 85u8, 0u8, 102u8, 246u8, 219u8, 118u8, 107...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/update_26_10.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 27u8, 56u8, 202u8, 199u8, 115u8, 62u8, 110u8, 106u8, 51u8, 137u8, 156u8, 16u8, 221u8, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_40_1000.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 4u8, 67u8, 20u8, 95u8, 45u8, 234u8, 124u8, 192u8, 255u8, 67u8, 186u8, 52u8, 124u8, 241u...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_40_100.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 11u8, 179u8, 191u8, 18u8, 84u8, 83u8, 208u8, 56u8, 44u8, 223u8, 176u8, 136u8, 5u8, 209u...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/inclusion_26_8.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 16usize, vk_alpha_g1: [ 21u8, 70u8, 109u8, 120u8, 120u8, 101u8, 224u8, 33u8, 35u8, 112u8, 134u8, 152u8, 227u8,...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_subtrees_26_100.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 13u8, 125u8, 112u8, 105u8, 97u8, 112u8, 181u8, 170u8, 70u8, 59u8, 221u8, 160u8, 141u8, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/non_inclusion_26_1.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 2usize, vk_alpha_g1: [ 42u8, 175u8, 167u8, 170u8, 106u8, 79u8, 89u8, 23u8, 163u8, 201u8, 208u8, 224u8, 240u8, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/update_26_100.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 31u8, 23u8, 168u8, 177u8, 63u8, 206u8, 117u8, 49u8, 144u8, 106u8, 76u8, 11u8, 187u8, 12...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_proofs_26_1000.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 29u8, 50u8, 106u8, 16u8, 161u8, 120u8, 3u8, 219u8, 189u8, 249u8, 158u8, 9u8, 2u8, 98u8,...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_proofs_26_100.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 11u8, 53u8, 20u8, 59u8, 41u8, 250u8, 224u8, 239u8, 14u8, 207u8, 32u8, 94u8, 180u8, 214u...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_proofs_26_1.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 18u8, 39u8, 46u8, 163u8, 160u8, 133u8, 40u8, 109u8, 164u8, 99u8, 108u8, 95u8, 207u8, 68...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/inclusion_26_2.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 4usize, vk_alpha_g1: [ 34u8, 48u8, 79u8, 167u8, 205u8, 132u8, 123u8, 27u8, 236u8, 30u8, 59u8, 227u8, 223u8, 10...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/inclusion_26_3.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 6usize, vk_alpha_g1: [ 31u8, 68u8, 56u8, 3u8, 17u8, 93u8, 98u8, 70u8, 252u8, 44u8, 85u8, 66u8, 82u8, 45u8, 81u...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_26_500.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 44u8, 254u8, 117u8, 148u8, 225u8, 45u8, 180u8, 255u8, 45u8, 42u8, 139u8, 228u8, 41u8, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_40_1.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 47u8, 210u8, 83u8, 92u8, 199u8, 97u8, 152u8, 7u8, 13u8, 40u8, 30u8, 9u8, 112u8, 89u8, 2...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_subtrees_26_500.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 24u8, 119u8, 80u8, 206u8, 169u8, 86u8, 100u8, 55u8, 148u8, 186u8, 197u8, 158u8, 24u8, 1...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/update_10_10.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 30u8, 119u8, 230u8, 5u8, 142u8, 169u8, 127u8, 79u8, 133u8, 69u8, 185u8, 219u8, 240u8, 9...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/mod.rs
pub mod inclusion_26_1; pub mod inclusion_26_2; pub mod inclusion_26_3; pub mod inclusion_26_4; pub mod inclusion_26_8; pub mod non_inclusion_26_1; pub mod non_inclusion_26_2; pub mod combined_26_1_1; pub mod combined_26_1_2; pub mod combined_26_2_1; pub mod combined_26_2_2; pub mod combined_26_3_1; pub mod combined_...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_40_500.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 7u8, 126u8, 52u8, 91u8, 216u8, 164u8, 175u8, 249u8, 113u8, 125u8, 29u8, 208u8, 206u8, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/inclusion_26_4.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 8usize, vk_alpha_g1: [ 14u8, 106u8, 49u8, 124u8, 243u8, 77u8, 216u8, 138u8, 32u8, 107u8, 75u8, 171u8, 209u8, ...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_subtrees_26_10.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 33u8, 177u8, 176u8, 53u8, 169u8, 1u8, 35u8, 130u8, 158u8, 228u8, 165u8, 158u8, 113u8, 2...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/address_append_26_10.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 15u8, 125u8, 211u8, 223u8, 93u8, 144u8, 94u8, 232u8, 7u8, 113u8, 172u8, 156u8, 72u8, 61...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/update_26_1000.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 25u8, 231u8, 121u8, 61u8, 174u8, 206u8, 15u8, 183u8, 198u8, 140u8, 174u8, 102u8, 147u8,...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_subtrees_26_1000.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 16u8, 205u8, 128u8, 105u8, 82u8, 67u8, 90u8, 237u8, 230u8, 30u8, 214u8, 218u8, 95u8, 21...
0
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src
solana_public_repos/Lightprotocol/light-protocol/circuit-lib/verifier/src/verifying_keys/append_with_proofs_26_500.rs
// This file is generated by xtask. Do not edit it manually. use groth16_solana::groth16::Groth16Verifyingkey; pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey { nr_pubinputs: 1usize, vk_alpha_g1: [ 33u8, 198u8, 24u8, 113u8, 74u8, 188u8, 22u8, 212u8, 204u8, 217u8, 228u8, 11u8, 13u8, 20...
0