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:
narodnik
2021-09-14 15:34:25 +02:00
parent 1d629ffc45
commit fac75137dc

View File

@@ -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;