From fac75137dcd94f271ed5e134ec2ee64e3280c56c Mon Sep 17 00:00:00 2001 From: narodnik Date: Tue, 14 Sep 2021 15:34:25 +0200 Subject: [PATCH] updated NOTE_PLAINTEXT_SIZE changing size for asset_id from 8 bytes to 32 bytes because type changed from u64 to Scalar --- src/crypto/note.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/crypto/note.rs b/src/crypto/note.rs index 6c5dcd803..457465cd3 100644 --- a/src/crypto/note.rs +++ b/src/crypto/note.rs @@ -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;