pub struct JsComplianceProof {
pub proof_bytes: Buffer,
pub proof_hash: String,
pub proving_time_ms: i64,
pub proof_size: i64,
pub witness_commitment: Vec<String>,
pub witness_commitment_hex: String,
}Expand description
Result of proof generation
Fields§
§proof_bytes: BufferRaw proof bytes
proof_hash: StringSHA-256 hash of proof bytes (hex)
proving_time_ms: i64Time taken to generate proof in milliseconds
proof_size: i64Size of proof in bytes
witness_commitment: Vec<String>Witness commitment (4 x u64 as field elements)
witness_commitment_hex: StringWitness commitment encoded as 32 bytes (4 x u64 big-endian) and hex-encoded (64 chars).
Trait Implementations§
Source§impl FromNapiValue for JsComplianceProof
impl FromNapiValue for JsComplianceProof
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for JsComplianceProof
impl ToNapiValue for JsComplianceProof
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsComplianceProof,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsComplianceProof, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for JsComplianceProof
impl TypeName for JsComplianceProof
Source§impl ValidateNapiValue for JsComplianceProof
impl ValidateNapiValue for JsComplianceProof
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for JsComplianceProof
impl RefUnwindSafe for JsComplianceProof
impl Send for JsComplianceProof
impl !Sync for JsComplianceProof
impl Unpin for JsComplianceProof
impl UnsafeUnpin for JsComplianceProof
impl UnwindSafe for JsComplianceProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more