Skip to content

Compatibility Issue: encrypt Method in @trustvc/trustvc Uses Ethers v5, Conflicts with Ethers v6 #49

@manishraana

Description

@manishraana

Hi @nghaninn

We are currently using Ethers v6 for our project and have integrated the @trustvc/trustvc package to encrypt remarks while minting trade documents. However, it appears that the encrypt method in @trustvc/trustvc internally relies on Ethers v5, which creates compatibility issues with our existing Ethers v6-based implementation.

Steps to Reproduce:

Set up a project with Ethers v6.
Import the encrypt method from @trustvc/trustvc package:

import { v5Contracts, encrypt } from "@trustvc/trustvc";

https://docs.tradetrust.io/docs/tutorial/transferable-records/issuing-document/issuing-document-code

Suggested Solution:

Update the encrypt method in @trustvc/trustvc to use Ethers v6.
Alternatively, provide a backward compatibility mechanism or a version-agnostic implementation of the encrypt method.
Environment Details:

Additional Information:

We rely on the latest features and API changes in Ethers v6 for our project. Downgrading to Ethers v5 would disrupt our existing setup.

Please let us know if there’s a workaround or if an update is planned to address this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions