Files
darkfi/src/types.rs
2021-12-02 21:24:16 +01:00

14 lines
392 B
Rust

//! Type aliases used in the codebase.
// Helpful for changing the curve and crypto we're using.
use pasta_curves::pallas;
pub type DrkCircuitField = pallas::Base;
pub type DrkTokenId = pallas::Base;
pub type DrkValue = pallas::Base;
pub type DrkSerial = pallas::Base;
pub type DrkCoinBlind = pallas::Base;
pub type DrkValueBlind = pallas::Scalar;
pub type DrkValueCommit = pallas::Point;