v1.0.22
What's Changed
Features
- data from_cbor: Added
PlutusDataCborextension trait withto_cbor()andfrom_cbor()methods for direct CBOR hex serialization/deserialization of anyPlutusDataJsontype
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