Struct dharitri_wasm::api::uncallable::EllipticCurveUncallable
source · pub struct EllipticCurveUncallable;Trait Implementations§
source§impl EllipticCurveApi for EllipticCurveUncallable
impl EllipticCurveApi for EllipticCurveUncallable
type BigUint = BigUintUncallable
fn get_values( &self ) -> (Self::BigUint, Self::BigUint, Self::BigUint, Self::BigUint, Self::BigUint, u32)
fn create_ec(_curve: &str) -> Self
fn get_ec_length(&self) -> u32
fn get_priv_key_byte_length(&self) -> u32
fn add_ec( &self, _x_first_point: Self::BigUint, _y_first_point: Self::BigUint, _x_second_point: Self::BigUint, _y_second_point: Self::BigUint ) -> (Self::BigUint, Self::BigUint)
fn double_ec( &self, _x_point: Self::BigUint, _y_point: Self::BigUint ) -> (Self::BigUint, Self::BigUint)
fn is_on_curve_ec( &self, _x_point: Self::BigUint, _y_point: Self::BigUint ) -> bool
fn scalar_mult( &self, _x_point: Self::BigUint, _y_point: Self::BigUint, _data: BoxedBytes ) -> (Self::BigUint, Self::BigUint)
fn scalar_base_mult(&self, _data: BoxedBytes) -> (Self::BigUint, Self::BigUint)
fn marshal_ec( &self, _x_pair: Self::BigUint, _y_pair: Self::BigUint ) -> BoxedBytes
fn marshal_compressed_ec( &self, _x_pair: Self::BigUint, _y_pair: Self::BigUint ) -> BoxedBytes
fn unmarshal_ec(&self, _data: BoxedBytes) -> (Self::BigUint, Self::BigUint)
fn unmarshal_compressed_ec( &self, _data: BoxedBytes ) -> (Self::BigUint, Self::BigUint)
fn generate_key_ec(&self) -> (Self::BigUint, Self::BigUint, BoxedBytes)
fn from_bitsize_ec(_bitsize: u32) -> Option<Self>
source§impl NestedEncode for EllipticCurveUncallable
impl NestedEncode for EllipticCurveUncallable
source§fn dep_encode<O: NestedEncodeOutput>(
&self,
_dest: &mut O
) -> Result<(), EncodeError>
fn dep_encode<O: NestedEncodeOutput>( &self, _dest: &mut O ) -> Result<(), EncodeError>
NestedEncode to output, using the format of an object nested inside another structure.
Does not provide compact version.
source§fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>(
&self,
_dest: &mut O,
_c: ExitCtx,
_exit: fn(_: ExitCtx, _: EncodeError) -> !
)
fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>( &self, _dest: &mut O, _c: ExitCtx, _exit: fn(_: ExitCtx, _: EncodeError) -> ! )
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl TopEncode for EllipticCurveUncallable
impl TopEncode for EllipticCurveUncallable
source§fn top_encode<O: TopEncodeOutput>(&self, _output: O) -> Result<(), EncodeError>
fn top_encode<O: TopEncodeOutput>(&self, _output: O) -> Result<(), EncodeError>
Attempt to serialize the value to ouput.
source§fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>(
&self,
_output: O,
_c: ExitCtx,
_exit: fn(_: ExitCtx, _: EncodeError) -> !
)
fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>( &self, _output: O, _c: ExitCtx, _exit: fn(_: ExitCtx, _: EncodeError) -> ! )
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller bytecode implementations
in cases where the application is supposed to exit directly on decode error.source§impl TypeAbi for EllipticCurveUncallable
impl TypeAbi for EllipticCurveUncallable
fn type_name() -> String
source§fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC
)
fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC )
A type can provide more than its own description.
For instance, a struct can also provide the descriptions of the type of its fields.
TypeAbi doesn’t care for the exact accumulator type,
which is abstracted by the TypeDescriptionContainer trait.
Auto Trait Implementations§
impl RefUnwindSafe for EllipticCurveUncallable
impl Send for EllipticCurveUncallable
impl Sync for EllipticCurveUncallable
impl Unpin for EllipticCurveUncallable
impl UnwindSafe for EllipticCurveUncallable
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