Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
chore!: remove unused `OpcodeResolutionError::IncorrectNumFunctionArg…
Browse files Browse the repository at this point in the history
…uments` variant (#397)
  • Loading branch information
TomAFrench authored Jun 21, 2023
1 parent 63354df commit d1368d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions acvm/src/pwg/blackbox/ecdsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub(super) fn secp256k1_prehashed(
) -> Result<OpcodeResolution, OpcodeResolutionError> {
let hashed_message = to_u8_vec(initial_witness, hashed_message_inputs)?;

// These errors should never be emitted in practice as they would imply malformed ACIR generation.
let pub_key_x: [u8; 32] =
to_u8_vec(initial_witness, public_key_x_inputs)?.try_into().map_err(|_| {
OpcodeResolutionError::BlackBoxFunctionFailed(
Expand Down
2 changes: 0 additions & 2 deletions acvm/src/pwg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ pub enum OpcodeResolutionError {
UnsupportedBlackBoxFunc(BlackBoxFunc),
#[error("could not satisfy all constraints")]
UnsatisfiedConstrain,
#[error("expected {0} inputs for function {1}, but got {2}")]
IncorrectNumFunctionArguments(usize, BlackBoxFunc, usize),
#[error("failed to solve blackbox function: {0}, reason: {1}")]
BlackBoxFunctionFailed(BlackBoxFunc, String),
#[error("failed to solve brillig function, reason: {0}")]
Expand Down

0 comments on commit d1368d0

Please sign in to comment.