pub mod active_account;
pub mod active_note;
pub mod faucet;
pub mod input_note;
pub mod native_account;
pub mod note;
pub mod output_note;
pub mod storage;
pub mod tx;
mod types;
pub use miden_field_repr::{FromFeltRepr, ToFeltRepr};
pub use types::*;
const MAX_ATTACHMENTS_PER_NOTE: usize = 4;
const MAX_ATTACHMENT_WORDS: usize = 256;
fn assert_attachment_count(num_attachments: usize) {
assert!(
num_attachments <= MAX_ATTACHMENTS_PER_NOTE,
"note cannot contain more than {MAX_ATTACHMENTS_PER_NOTE} attachments"
);
}
fn assert_attachment_word_count(num_words: usize) {
assert!(
num_words <= MAX_ATTACHMENT_WORDS,
"note attachment cannot contain more than {MAX_ATTACHMENT_WORDS} words"
);
}