synor/contracts/confidential-token/Cargo.toml
Gulshan Yadav 49ba05168c feat(privacy): add Phase 14 Milestone 2 - Privacy Layer
Implements comprehensive privacy primitives for confidential transactions:

- synor-privacy crate:
  - Pedersen commitments for hidden amounts with homomorphic properties
  - Simplified range proofs (bit-wise) for value validity
  - Stealth addresses with ViewKey/SpendKey for receiver privacy
  - LSAG ring signatures for sender anonymity
  - Key images for double-spend prevention
  - Confidential transaction type combining all primitives

- contracts/confidential-token:
  - WASM smart contract for privacy-preserving tokens
  - UTXO-based model (similar to Monero/Zcash)
  - Methods: mint, transfer, burn with ring signature verification

42 passing tests, 45KB WASM output.
2026-01-19 17:58:11 +05:30

25 lines
806 B
TOML

[package]
name = "synor-confidential-token"
version = "0.1.0"
edition = "2021"
description = "Confidential Token Contract with hidden amounts and stealth addresses"
authors = ["Synor Team <team@synor.cc>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
# Exclude from parent workspace - contracts are standalone WASM builds
[workspace]
[lib]
crate-type = ["cdylib"]
[dependencies]
synor-sdk = { path = "../../crates/synor-sdk", default-features = false }
borsh = { version = "1.3", default-features = false, features = ["derive"] }
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1 # Single codegen unit for better optimization
panic = "abort" # Abort on panic (smaller binaries)
strip = true # Strip symbols