Skip to content

Commit

Permalink
chore: remove deprecated method (#3625)
Browse files Browse the repository at this point in the history
remove deprecated method
  • Loading branch information
kevaundray authored Nov 29, 2023
1 parent 87a302f commit c789228
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions acvm-repo/acir/src/circuit/opcodes/black_box_function_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,75 +120,6 @@ pub enum BlackBoxFuncCall {
}

impl BlackBoxFuncCall {
#[deprecated = "BlackBoxFuncCall::dummy() is unnecessary and will be removed in ACVM 0.24.0"]
pub fn dummy(bb_func: BlackBoxFunc) -> Self {
match bb_func {
BlackBoxFunc::AND => BlackBoxFuncCall::AND {
lhs: FunctionInput::dummy(),
rhs: FunctionInput::dummy(),
output: Witness(0),
},
BlackBoxFunc::XOR => BlackBoxFuncCall::XOR {
lhs: FunctionInput::dummy(),
rhs: FunctionInput::dummy(),
output: Witness(0),
},
BlackBoxFunc::RANGE => BlackBoxFuncCall::RANGE { input: FunctionInput::dummy() },
BlackBoxFunc::SHA256 => BlackBoxFuncCall::SHA256 { inputs: vec![], outputs: vec![] },
BlackBoxFunc::Blake2s => BlackBoxFuncCall::Blake2s { inputs: vec![], outputs: vec![] },
BlackBoxFunc::SchnorrVerify => BlackBoxFuncCall::SchnorrVerify {
public_key_x: FunctionInput::dummy(),
public_key_y: FunctionInput::dummy(),
signature: vec![],
message: vec![],
output: Witness(0),
},
BlackBoxFunc::PedersenCommitment => BlackBoxFuncCall::PedersenCommitment {
inputs: vec![],
domain_separator: 0,
outputs: (Witness(0), Witness(0)),
},
BlackBoxFunc::PedersenHash => BlackBoxFuncCall::PedersenHash {
inputs: vec![],
domain_separator: 0,
output: Witness(0),
},
BlackBoxFunc::HashToField128Security => {
BlackBoxFuncCall::HashToField128Security { inputs: vec![], output: Witness(0) }
}
BlackBoxFunc::EcdsaSecp256k1 => BlackBoxFuncCall::EcdsaSecp256k1 {
public_key_x: vec![],
public_key_y: vec![],
signature: vec![],
hashed_message: vec![],
output: Witness(0),
},
BlackBoxFunc::EcdsaSecp256r1 => BlackBoxFuncCall::EcdsaSecp256r1 {
public_key_x: vec![],
public_key_y: vec![],
signature: vec![],
hashed_message: vec![],
output: Witness(0),
},
BlackBoxFunc::FixedBaseScalarMul => BlackBoxFuncCall::FixedBaseScalarMul {
low: FunctionInput::dummy(),
high: FunctionInput::dummy(),
outputs: (Witness(0), Witness(0)),
},
BlackBoxFunc::Keccak256 => {
BlackBoxFuncCall::Keccak256 { inputs: vec![], outputs: vec![] }
}
BlackBoxFunc::RecursiveAggregation => BlackBoxFuncCall::RecursiveAggregation {
verification_key: vec![],
proof: vec![],
public_inputs: vec![],
key_hash: FunctionInput::dummy(),
input_aggregation_object: None,
output_aggregation_object: vec![],
},
}
}

pub fn get_black_box_func(&self) -> BlackBoxFunc {
match self {
BlackBoxFuncCall::AND { .. } => BlackBoxFunc::AND,
Expand Down

0 comments on commit c789228

Please sign in to comment.