Idea is to enable decryption of already encrypted metadata in decodeTransaction. The user specifies passphrase in which metadata was encrypted and the metadata located as in CIP83 is decrypted. The change is added in non-intrusive way. Due to lack of JSON instances exposure in cardano-api the needed functions were added (they are about to be erased when cardano-api exposes metadataValueFromJsonNoSchema in next node versions).
The heart of solution is fromMetadataEncrypted. Api spec was updated. Integration tests expanded to show the case.
Idea is to enable decryption of already encrypted metadata in decodeTransaction. The user specifies passphrase in which metadata was encrypted and the metadata located as in CIP83 is decrypted. The change is added in non-intrusive way. Due to lack of JSON instances exposure in cardano-api the needed functions were added (they are about to be erased when cardano-api exposes
metadataValueFromJsonNoSchema
in next node versions).The heart of solution is
fromMetadataEncrypted
. Api spec was updated. Integration tests expanded to show the case.Comments
Issue Number
adp-3348