Nothing new is going on within the code itself. I simply popped the crate into pallas_codec as a submodule `pallas_codec::flat`. I also moved over the tests that we had in the crate. In general this is in solid shape and hasn't had any changes for months. That said there could be some things that require love like dealing with BigInt. Co-authored-by: Kasey White <kwhitemsg@gmail.com>
12 lines
381 B
Rust
12 lines
381 B
Rust
/// Flat encoding/decoding for Plutus Core
|
|
pub mod flat;
|
|
|
|
/// Shared re-export of minicbor lib across all Pallas
|
|
pub use minicbor;
|
|
|
|
/// Round-trip friendly common helper structs
|
|
pub mod utils;
|
|
|
|
pub trait Fragment: Sized + for<'b> minicbor::Decode<'b, ()> + minicbor::Encode<()> {}
|
|
|
|
impl<T> Fragment for T where T: for<'b> minicbor::Decode<'b, ()> + minicbor::Encode<()> + Sized {}
|