use miden_client::note::NoteType as NativeNoteType;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum NoteType {
Private = 0b10,
Public = 0b01,
}
impl From<NativeNoteType> for NoteType {
fn from(value: NativeNoteType) -> Self {
match value {
NativeNoteType::Private => NoteType::Private,
NativeNoteType::Public => NoteType::Public,
}
}
}
impl From<NoteType> for NativeNoteType {
fn from(value: NoteType) -> Self {
match value {
NoteType::Private => NativeNoteType::Private,
NoteType::Public => NativeNoteType::Public,
}
}
}