Skip to content

v1.0.22

Choose a tag to compare

@HinsonSIDAN HinsonSIDAN released this 19 Jan 01:19
· 50 commits to master since this release

What's Changed

Features

  • data from_cbor: Added PlutusDataCbor extension trait with to_cbor() and from_cbor() methods for direct CBOR hex serialization/deserialization of any PlutusDataJson type

Usage

use whisky::PlutusDataCbor;

// Deserialize from CBOR hex
let intent = HydraOrderBookIntent::from_cbor(cbor_hex)?;

// Serialize to CBOR hex
let cbor_out = intent.to_cbor()?;

Full Changelog: v1.0.21...v1.0.22