miden_standards/note/
standard_note_attachment.rs1use miden_protocol::note::NoteAttachmentScheme;
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5#[non_exhaustive]
6pub enum StandardNoteAttachment {
7 NetworkAccountTarget,
9 PswapAttachment,
13}
14
15impl StandardNoteAttachment {
16 pub const fn attachment_scheme(&self) -> NoteAttachmentScheme {
18 match self {
19 StandardNoteAttachment::NetworkAccountTarget => NoteAttachmentScheme::new_const(2u16),
20 StandardNoteAttachment::PswapAttachment => NoteAttachmentScheme::new_const(3u16),
21 }
22 }
23}