pub enum BlackBoxFunc {
Show 20 variants
AES128Encrypt,
AND,
XOR,
RANGE,
Blake2s,
Blake3,
EcdsaSecp256k1,
EcdsaSecp256r1,
MultiScalarMul,
Keccakf1600,
RecursiveAggregation,
EmbeddedCurveAdd,
BigIntAdd,
BigIntSub,
BigIntMul,
BigIntDiv,
BigIntFromLeBytes,
BigIntToLeBytes,
Poseidon2Permutation,
Sha256Compression,
}
Expand description
Representation of available black box function names. This enum should be used to represent a black box before we have set up the appropriate inputs and outputs. At which point it should be converted to a crate::circuit::opcodes::BlackBoxFuncCall
Variants§
AES128Encrypt
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::AES128Encrypt
AND
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::AND
XOR
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::XOR
RANGE
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::RANGE
Blake2s
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::Blake2s
Blake3
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::Blake3
EcdsaSecp256k1
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::EcdsaSecp256k1
EcdsaSecp256r1
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::EcdsaSecp256r1
MultiScalarMul
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::MultiScalarMul
Keccakf1600
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::Keccakf1600
RecursiveAggregation
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::RecursiveAggregation
EmbeddedCurveAdd
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::EmbeddedCurveAdd
BigIntAdd
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::BigIntAdd
BigIntSub
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::BigIntSub
BigIntMul
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::BigIntMul
BigIntDiv
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::BigIntDiv
BigIntFromLeBytes
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::BigIntFromLeBytes
BigIntToLeBytes
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::BigIntToLeBytes
Poseidon2Permutation
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::Poseidon2Permutation
Sha256Compression
More details can be found at crate::circuit::opcodes::BlackBoxFuncCall::Sha256Compression
Implementations§
Source§impl BlackBoxFunc
impl BlackBoxFunc
Trait Implementations§
Source§impl Clone for BlackBoxFunc
impl Clone for BlackBoxFunc
Source§fn clone(&self) -> BlackBoxFunc
fn clone(&self) -> BlackBoxFunc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BlackBoxFunc
impl Debug for BlackBoxFunc
Source§impl<'de> Deserialize<'de> for BlackBoxFunc
impl<'de> Deserialize<'de> for BlackBoxFunc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for BlackBoxFunc
impl Display for BlackBoxFunc
Source§impl Hash for BlackBoxFunc
impl Hash for BlackBoxFunc
Source§impl IntoEnumIterator for BlackBoxFunc
impl IntoEnumIterator for BlackBoxFunc
type Iterator = BlackBoxFuncIter
fn iter() -> BlackBoxFuncIter ⓘ
Source§impl PartialEq for BlackBoxFunc
impl PartialEq for BlackBoxFunc
Source§impl Serialize for BlackBoxFunc
impl Serialize for BlackBoxFunc
impl Copy for BlackBoxFunc
impl Eq for BlackBoxFunc
impl StructuralPartialEq for BlackBoxFunc
Auto Trait Implementations§
impl Freeze for BlackBoxFunc
impl RefUnwindSafe for BlackBoxFunc
impl Send for BlackBoxFunc
impl Sync for BlackBoxFunc
impl Unpin for BlackBoxFunc
impl UnwindSafe for BlackBoxFunc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg
] or
a color-specific method, such as [OwoColorize::green
], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg
] or
a color-specific method, such as [OwoColorize::on_yellow
], Read more