feat: implement bls primitives in code gen

This commit is contained in:
microproofs
2023-11-07 14:14:33 -05:00
committed by Lucas
parent d51374aac1
commit 8b89ba3b93
11 changed files with 70 additions and 16 deletions

View File

@@ -66,7 +66,7 @@ pub fn value() -> impl Parser<Token, ast::Constant, Error = ParseError> {
ast::Constant::CurvePoint {
location,
point: ast::Curve::Bls12_381(point),
point: ast::Curve::Bls12_381(point).into(),
preferred_format,
}
}

View File

@@ -27,7 +27,7 @@ pub fn parser() -> impl Parser<Token, UntypedExpr, Error = ParseError> {
UntypedExpr::CurvePoint {
location,
point: ast::Curve::Bls12_381(point),
point: ast::Curve::Bls12_381(point).into(),
preferred_format,
}
}