2026-03-04 18:42:33 +03:00
|
|
|
#![expect(
|
|
|
|
|
clippy::multiple_inherent_impl,
|
|
|
|
|
reason = "We prefer to group methods by functionality rather than by type for encoding"
|
|
|
|
|
)]
|
2025-08-18 07:39:41 -03:00
|
|
|
|
2025-08-26 14:53:02 -03:00
|
|
|
pub use circuit_io::{PrivacyPreservingCircuitInput, PrivacyPreservingCircuitOutput};
|
2025-10-03 20:44:29 -03:00
|
|
|
pub use commitment::{
|
|
|
|
|
Commitment, CommitmentSetDigest, DUMMY_COMMITMENT, DUMMY_COMMITMENT_HASH, MembershipProof,
|
|
|
|
|
compute_digest_for_path,
|
|
|
|
|
};
|
2026-04-07 17:37:38 -04:00
|
|
|
pub use encryption::{
|
|
|
|
|
EncryptionScheme, SharedSecretKey, shared_key_derivation::EphemeralPublicKey,
|
|
|
|
|
};
|
2025-08-26 14:53:02 -03:00
|
|
|
pub use nullifier::{Nullifier, NullifierPublicKey, NullifierSecretKey};
|
2026-04-02 17:20:52 -04:00
|
|
|
pub use signature::{PrivateKey, PublicKey, Signature};
|
2025-08-19 10:39:47 -03:00
|
|
|
|
2026-03-04 18:42:33 +03:00
|
|
|
pub mod account;
|
|
|
|
|
mod circuit_io;
|
|
|
|
|
mod commitment;
|
|
|
|
|
mod encoding;
|
|
|
|
|
pub mod encryption;
|
|
|
|
|
mod nullifier;
|
|
|
|
|
pub mod program;
|
2026-04-02 17:20:52 -04:00
|
|
|
pub mod signature;
|
2026-03-04 18:42:33 +03:00
|
|
|
|
2026-04-02 17:20:52 -04:00
|
|
|
// TODO: temp#[cfg(feature = "host")]
|
2025-08-26 14:53:02 -03:00
|
|
|
pub mod error;
|
2026-03-28 03:57:14 -03:00
|
|
|
|
|
|
|
|
pub type BlockId = u64;
|
|
|
|
|
/// Unix timestamp in milliseconds.
|
|
|
|
|
pub type Timestamp = u64;
|