Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running ICRC-1 test suite with newer versions of dfx #107

Open
tomijaga opened this issue Apr 10, 2023 · 1 comment
Open

Issue running ICRC-1 test suite with newer versions of dfx #107

tomijaga opened this issue Apr 10, 2023 · 1 comment

Comments

@tomijaga
Copy link

I ran into an error when running the test suite with dfx version above 0.12.0 but it worked when I used the 0.11.2 version

    failed to parse secret key PEM from file /Users/dire.sol/.config/dfx/identity/icrc-ref-test/identity.pem: 
    A key was rejected by Ring: InvalidEncoding', test/runner/main.rs:56:9

I noticed the .pem file created for new identities in newer versions of dfx is different from the ones that were considered for the test suite.
The new version has this pattern:

-----BEGIN EC PRIVATE KEY-----
MCF...
-----END EC PRIVATE KEY-----

while the previous one has this:

-----BEGIN PRIVATE KEY-----
MCF...
-----END PRIVATE KEY-----

Steps to re-create

  • Update dfx to version 0.13.1
  • create a new identity:
    dfx identity new [identity-name]
    dfx identity use [identity-name]
  • Deploy the icrc-1 ref module
  • Run the test suite with the newly created identity
    cargo run --bin runner -- -u http://127.0.0.1:4943 -c $$CANISTER -s ~/.config/dfx/identity/$(dfx identity whoami)/identity.pem
@drewbikscube
Copy link

Anyone with a fix or workaround, aside from downgrading?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants