@@ -7,7 +7,6 @@ use acir::{
7
7
brillig:: ForeignCallResult ,
8
8
circuit:: {
9
9
AssertionPayload , ErrorSelector , ExpressionOrMemory , Opcode , OpcodeLocation ,
10
- RawAssertionPayload , ResolvedAssertionPayload ,
11
10
brillig:: { BrilligBytecode , BrilligFunctionId } ,
12
11
opcodes:: {
13
12
AcirFunctionId , BlockId , ConstantOrWitnessEnum , FunctionInput , InvalidInputBitSize ,
@@ -34,6 +33,7 @@ mod memory_op;
34
33
35
34
pub use self :: brillig:: { BrilligSolver , BrilligSolverStatus } ;
36
35
pub use brillig:: ForeignCallWaitInfo ;
36
+ use serde:: { Deserialize , Serialize } ;
37
37
38
38
#[ derive( Debug , Clone , PartialEq ) ]
39
39
pub enum ACVMStatus < F > {
@@ -117,6 +117,18 @@ impl std::fmt::Display for ErrorLocation {
117
117
}
118
118
}
119
119
120
+ #[ derive( Clone , PartialEq , Eq , Debug , Serialize , Deserialize ) ]
121
+ pub struct RawAssertionPayload < F > {
122
+ pub selector : ErrorSelector ,
123
+ pub data : Vec < F > ,
124
+ }
125
+
126
+ #[ derive( Clone , PartialEq , Eq , Debug ) ]
127
+ pub enum ResolvedAssertionPayload < F > {
128
+ String ( String ) ,
129
+ Raw ( RawAssertionPayload < F > ) ,
130
+ }
131
+
120
132
#[ derive( Clone , PartialEq , Eq , Debug , Error ) ]
121
133
pub enum OpcodeResolutionError < F > {
122
134
#[ error( "Cannot solve opcode: {0}" ) ]
0 commit comments