mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 15:17:57 -05:00
updated NOTE_PLAINTEXT_SIZE changing size for asset_id from 8 bytes to 32 bytes because type changed from u64 to Scalar
This commit is contained in:
@@ -7,11 +7,12 @@ use super::diffie_hellman::{kdf_sapling, sapling_ka_agree};
|
||||
use crate::error::{Error, Result};
|
||||
use crate::serial::{Decodable, Encodable, ReadExt, WriteExt};
|
||||
|
||||
pub const NOTE_PLAINTEXT_SIZE: usize = 32 + // serial
|
||||
8 + // value
|
||||
8 + // asset_id
|
||||
32 + // coin_blind
|
||||
32; // valcom_blind
|
||||
pub const NOTE_PLAINTEXT_SIZE: usize =
|
||||
32 + // serial
|
||||
8 + // value
|
||||
32 + // asset_id
|
||||
32 + // coin_blind
|
||||
32; // valcom_blind
|
||||
pub const AEAD_TAG_SIZE: usize = 16;
|
||||
pub const ENC_CIPHERTEXT_SIZE: usize = NOTE_PLAINTEXT_SIZE + AEAD_TAG_SIZE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user