From a36592485cee72a87082e4f6c6263ea85c0ec934 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Wed, 27 Aug 2025 19:25:03 -0300 Subject: [PATCH] remove builtin programs check --- nssa/Cargo.toml | 1 - .../guest/src/bin/privacy_preserving_circuit.rs | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/nssa/Cargo.toml b/nssa/Cargo.toml index 8ada541..98a0adf 100644 --- a/nssa/Cargo.toml +++ b/nssa/Cargo.toml @@ -11,7 +11,6 @@ program-methods = { path = "program_methods" } serde = "1.0.219" sha2 = "0.10.9" secp256k1 = "0.31.1" -k256 = "0.13.3" rand = "0.8" borsh = "1.5.7" bytemuck = "1.13" diff --git a/nssa/program_methods/guest/src/bin/privacy_preserving_circuit.rs b/nssa/program_methods/guest/src/bin/privacy_preserving_circuit.rs index a07fdd7..83f593a 100644 --- a/nssa/program_methods/guest/src/bin/privacy_preserving_circuit.rs +++ b/nssa/program_methods/guest/src/bin/privacy_preserving_circuit.rs @@ -9,8 +9,6 @@ use nssa_core::{ PrivacyPreservingCircuitInput, PrivacyPreservingCircuitOutput, }; -const AUTHENTICATED_TRANSFER_PROGRAM_ID: [u32; 8] = [4009390658, 295818534, 2287042879, 2991817555, 298425691, 3426172222, 3671663086, 1858988641]; - fn main() { let PrivacyPreservingCircuitInput { program_output, @@ -21,9 +19,8 @@ fn main() { program_id, } = env::read(); - // Check that `program_execution_proof` is one of the allowed built-in programs - // TODO: Adapt when more builtin programs are added - assert_eq!(program_id, AUTHENTICATED_TRANSFER_PROGRAM_ID); + // TODO: Check that `program_execution_proof` is one of the allowed built-in programs + // assert_eq!(program_id, AUTHENTICATED_TRANSFER_PROGRAM_ID); // Check that `program_output` is consistent with the execution of the corresponding program. env::verify(program_id, &to_vec(&program_output).unwrap()).unwrap();