cardano-foundation / cardano-wallet

HTTP server & command-line for managing UTxOs and HD wallets in Cardano.
Apache License 2.0
758 stars 213 forks source link

Decrypt encrypted metadata #4667

Open paweljakubas opened 1 week ago

paweljakubas commented 1 week ago

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