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

chore!: remove unused OpcodeResolutionError::IncorrectNumFunctionArguments variant #397

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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