This pull request adds a new method decodeManifest to the ManifestCoder class. This method allows decoding of POLO encoded manifests into their JSON equivalent, addressing the current lack of this feature in the library.
closes #90
Changes
Added decodeManifest method to ManifestCoder class
Added a enum ManifestFormat for various formats of manifest.
Update import/exports of js-moi-manifest
Implementation Details
The decodeManifest method takes a POLO encoded manifest (either as a hex string or Uint8Array) and its format as input, and returns a LogicManifest.Manifest object. It includes input validation and error handling for invalid manifests or unsupported formats.
Add decodeManifest method to ManifestCoder
Description
This pull request adds a new method
decodeManifest
to theManifestCoder
class. This method allows decoding of POLO encoded manifests into their JSON equivalent, addressing the current lack of this feature in the library.Changes
decodeManifest
method toManifestCoder
classManifestFormat
for various formats of manifest.js-moi-manifest
Implementation Details
The decodeManifest method takes a POLO encoded manifest (either as a hex string or Uint8Array) and its format as input, and returns a LogicManifest.Manifest object. It includes input validation and error handling for invalid manifests or unsupported formats.
Example
Changes include
Checklist