pub struct WasmCryptoProvider { /* private fields */ }Expand description
WASM-compatible CryptoProvider wrapper
This wrapper provides JavaScript-compatible bindings for the crypto provider:
- Integrates with the new modular architecture
- Provides consistent error handling
- Supports all cryptographic operations
Implementations§
Source§impl WasmCryptoProvider
impl WasmCryptoProvider
Sourcepub fn new() -> WasmCryptoProvider
pub fn new() -> WasmCryptoProvider
Create a new WASM CryptoProvider
Source§impl WasmCryptoProvider
impl WasmCryptoProvider
Sourcepub fn is_algorithm_supported(&self, _algorithm: &str) -> bool
pub fn is_algorithm_supported(&self, _algorithm: &str) -> bool
Check if an algorithm is supported
Sourcepub fn supported_algorithms(&self) -> String
pub fn supported_algorithms(&self) -> String
Get supported algorithms by category
Trait Implementations§
Source§impl Default for WasmCryptoProvider
impl Default for WasmCryptoProvider
Source§impl From<WasmCryptoProvider> for JsValue
impl From<WasmCryptoProvider> for JsValue
Source§fn from(value: WasmCryptoProvider) -> Self
fn from(value: WasmCryptoProvider) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmCryptoProvider
impl FromWasmAbi for WasmCryptoProvider
Source§impl IntoWasmAbi for WasmCryptoProvider
impl IntoWasmAbi for WasmCryptoProvider
Source§impl LongRefFromWasmAbi for WasmCryptoProvider
impl LongRefFromWasmAbi for WasmCryptoProvider
Source§type Abi = WasmPtr<WasmRefCell<WasmCryptoProvider>>
type Abi = WasmPtr<WasmRefCell<WasmCryptoProvider>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmCryptoProvider>
type Anchor = RcRef<WasmCryptoProvider>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for WasmCryptoProvider
impl RefFromWasmAbi for WasmCryptoProvider
Source§type Abi = WasmPtr<WasmRefCell<WasmCryptoProvider>>
type Abi = WasmPtr<WasmRefCell<WasmCryptoProvider>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmCryptoProvider>
type Anchor = RcRef<WasmCryptoProvider>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for WasmCryptoProvider
impl RefMutFromWasmAbi for WasmCryptoProvider
Source§type Abi = WasmPtr<WasmRefCell<WasmCryptoProvider>>
type Abi = WasmPtr<WasmRefCell<WasmCryptoProvider>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmCryptoProvider>
type Anchor = RcRefMut<WasmCryptoProvider>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for WasmCryptoProvider
impl TryFromJsValue for WasmCryptoProvider
Source§impl VectorFromWasmAbi for WasmCryptoProvider
impl VectorFromWasmAbi for WasmCryptoProvider
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmCryptoProvider]>
Source§impl VectorIntoWasmAbi for WasmCryptoProvider
impl VectorIntoWasmAbi for WasmCryptoProvider
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmCryptoProvider]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmCryptoProvider
impl WasmDescribeVector for WasmCryptoProvider
impl SupportsConstructor for WasmCryptoProvider
impl SupportsInstanceProperty for WasmCryptoProvider
impl SupportsStaticProperty for WasmCryptoProvider
Auto Trait Implementations§
impl Freeze for WasmCryptoProvider
impl RefUnwindSafe for WasmCryptoProvider
impl Send for WasmCryptoProvider
impl Sync for WasmCryptoProvider
impl Unpin for WasmCryptoProvider
impl UnsafeUnpin for WasmCryptoProvider
impl UnwindSafe for WasmCryptoProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.