README
@harmoniclabs/plutus-data • Readme | API
@harmoniclabs/plutus-data
Typescript definition of the generic Data
type for plutus applicaitons
type Data
= DataConstr
| DataMap<Data, Data>
| DataList
| DataI
| DataB;
install
npm install @harmoniclabs/plutus-data
exported functions
function hashData(data: Data): Uint8Array;
function dataToCborObj(data: Data): CborObj;
function dataToCbor(data: Data): CborString;
function dataFromCborObj(cborObj: CborObj): Data;
function dataFromCbor(cbor: CanBeCborString): Data;