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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user