@harmoniclabs/plutus-data
v1.2.4
Published
Typescript definition of the generic `Data` type for plutus applicaitons
Downloads
4,640
Readme
@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;