amaru-uplc 0.1.0

A UPLC Evaluator as a CEK machine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::convert::Infallible;

use thiserror::Error;

#[derive(Error, Debug)]
pub enum FlatEncodeError {
    #[error("Overflow detected, cannot fit {byte} in {num_bits} bits.")]
    Overflow { byte: u8, num_bits: usize },
    #[error("Buffer is not byte aligned")]
    BufferNotByteAligned,
    #[error("Cannot encode BLS12-381 constants")]
    BlsElementNotSupported,
    #[error(transparent)]
    EncodeCbor(#[from] minicbor::encode::Error<Infallible>),
}