docs/docs_utils library

Functions

encryptField(CommercioDoc doc, Uint8List aesKey, Set<CommercioEncryptedData> encryptedData, List<String> recipients, Wallet wallet, {Client? client}) Future<CommercioDoc>
Transforms doc into one having the proper fields encrypted as specified inside the encryptedData list. All the fields will be encrypted using the specified aesKey. This key will later be encrypted for each and every Did specified into the recipients list. The overall encrypted data will be put inside the proper document field.

Exceptions / Errors

WalletIdentityNotFoundException