[WIP] Encryption for secure values (#183)

This commit is contained in:
Gregory Schier
2025-04-15 07:18:26 -07:00
committed by GitHub
parent e114a85c39
commit 2e55a1bd6d
208 changed files with 4063 additions and 28698 deletions

View File

@@ -1,5 +1,6 @@
use serde::{Serialize, Serializer};
use thiserror::Error;
use wasm_bindgen::JsValue;
#[derive(Error, Debug, PartialEq)]
pub enum Error {
@@ -22,4 +23,10 @@ impl Serialize for Error {
}
}
impl Into<JsValue> for Error {
fn into(self) -> JsValue {
serde_wasm_bindgen::to_value(&self).unwrap()
}
}
pub type Result<T> = std::result::Result<T, Error>;