Skip to main content

JsCompliancePublicInputs

Struct JsCompliancePublicInputs 

Source
pub struct JsCompliancePublicInputs {
Show 14 fields pub event_id: String, pub tenant_id: String, pub store_id: String, pub sequence_number: BigInt, pub payload_kind: u32, pub payload_plain_hash: String, pub payload_cipher_hash: String, pub event_signing_hash: String, pub policy_id: String, pub policy_params: Value, pub policy_hash: String, pub witness_commitment: Option<String>, pub authorization_receipt_hash: Option<String>, pub amount_binding_hash: Option<String>,
}
Expand description

Public inputs for compliance proof generation/verification

Fields§

§event_id: String

UUID of the event being proven

§tenant_id: String

Tenant ID

§store_id: String

Store ID

§sequence_number: BigInt

Sequence number of the event

§payload_kind: u32

Payload kind (event type discriminator)

§payload_plain_hash: String

SHA-256 hash of plaintext payload (hex64, lowercase)

§payload_cipher_hash: String

SHA-256 hash of ciphertext payload (hex64, lowercase)

§event_signing_hash: String

Event signing hash (hex64, lowercase)

§policy_id: String

Policy identifier (e.g., “aml.threshold”)

§policy_params: Value

Policy parameters as JSON object

§policy_hash: String

Policy hash (hex64, lowercase)

§witness_commitment: Option<String>

Optional witness commitment (hex64, lowercase) to bind the proved witness to canonical inputs.

§authorization_receipt_hash: Option<String>

Optional authorization receipt hash (hex64, lowercase) committed into canonical public inputs.

§amount_binding_hash: Option<String>

Optional payload amount binding hash (hex64, lowercase) committed into canonical public inputs.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> JsValuesTupleIntoVec for T
where T: ToNapiValue,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more