feat: implemented the Bls381-12 builtins and types

also implemented Keccak256 and Blake2b_224

TODO: cost model, flat serialization, pretty

Co-authored-by: rvcas <x@rvcas.dev>
This commit is contained in:
microproofs
2023-11-01 22:32:42 -04:00
committed by Lucas
parent 446ef11606
commit 0d2ac952d0
13 changed files with 809 additions and 5 deletions

View File

@@ -1292,6 +1292,9 @@ pub fn convert_constants_to_data(constants: Vec<Rc<UplcConstant>>) -> Vec<UplcCo
any_constructor: None,
fields: vec![],
})),
UplcConstant::Bls12_381G1Element(_) => todo!(),
UplcConstant::Bls12_381G2Element(_) => todo!(),
UplcConstant::Bls12_381MlResult(_) => todo!(),
};
new_constants.push(constant);
}