feat: Implemented builtin semantic versioning

feat: impl flat serialization and deserialization for bls constants
feat: started on cost models for the new builtins

Co-authored-by: rvcas <x@rvcas.dev>
This commit is contained in:
microproofs
2023-11-02 22:46:59 -04:00
committed by Lucas
parent f101581813
commit 18db1c394a
5 changed files with 338 additions and 500 deletions

View File

@@ -40,6 +40,8 @@ pub enum Error {
Utf8(#[from] FromUtf8Error),
#[error("Out of Bounds\n\nindex: {}\nbytestring: {}\npossible: 0 - {}", .0, hex::encode(.1), .1.len() - 1)]
ByteStringOutOfBounds(BigInt, Vec<u8>),
#[error("Attempt to consByteString something bigger than one byte {0}")]
ByteStringConsBiggerThanOneByte(BigInt),
#[error("Divide By Zero\n\n{0} / {1}")]
DivideByZero(BigInt, BigInt),
#[error("Ed25519S PublicKey should be 32 bytes but it was {0}")]
@@ -50,7 +52,7 @@ pub enum Error {
DeserialisationError(String, Value),
#[error("Integer overflow")]
OverflowError,
#[error("blst")]
#[error("blst error {0:?}")]
Blst(blst::BLST_ERROR),
#[error("blst::hashToGroup")]
HashToCurveDstTooBig,