add commitment

This commit is contained in:
Rostyslav Tyshko 2024-12-02 00:56:48 +01:00
parent 9a59eab30d
commit ec9973517e
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
use serde::{Deserialize, Serialize};
use crate::merkle_tree_public::CommitmentHashType;
#[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq, Eq)]
pub struct Commitment {
pub commitment_hash: CommitmentHashType,
}

View File

@ -12,6 +12,7 @@ pub mod block;
pub mod error;
pub mod merkle_tree_public;
pub mod nullifier;
pub mod commitment;
pub mod nullifier_sparse_merkle_tree;
pub mod transaction;
pub mod utxo_commitment;

View File

@ -3,3 +3,4 @@ pub mod merkle_tree;
pub mod tree_leav_item;
pub type TreeHashType = [u8; 32];
pub type CommitmentHashType = Vec<u8>;