pub enum Response {
MultiMillerLoop(Vec<u8>),
FinalExponentiation(Vec<u8>),
MultiScalarMultiplicationG1(Vec<u8>),
MultiScalarMultiplicationG2(Vec<u8>),
ProjectiveMultiplicationG1(Vec<u8>),
ProjectiveMultiplicationG2(Vec<u8>),
AggregateG1(Vec<u8>),
MapToG2Affine(Vec<u8>),
}Expand description
The enumeration contains result to a request.
Variants§
MultiMillerLoop(Vec<u8>)
Result of the multi Miller loop, encoded: ArkScale<Bls12_381::TargetField>.
FinalExponentiation(Vec<u8>)
Result of the final exponentiation, encoded: ArkScale<Bls12_381::TargetField>.
MultiScalarMultiplicationG1(Vec<u8>)
Result of the multi scalar multiplication, encoded: ArkScaleProjective<G1Projective>.
MultiScalarMultiplicationG2(Vec<u8>)
Result of the multi scalar multiplication, encoded: ArkScaleProjective<G2Projective>.
ProjectiveMultiplicationG1(Vec<u8>)
Result of the projective multiplication, encoded: ArkScaleProjective<G1Projective>.
ProjectiveMultiplicationG2(Vec<u8>)
Result of the projective multiplication, encoded: ArkScaleProjective<G2Projective>.
AggregateG1(Vec<u8>)
Result of the aggregation, encoded: ArkScale<G1Projective>.
MapToG2Affine(Vec<u8>)
Result of the mapping, encoded: ArkScale<G2Affine>.
Trait Implementations§
Source§impl Decode for Response
impl Decode for Response
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Response, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Response, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for Response
impl Encode for Response
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl EncodeLike for Response
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more