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

Error updating to v1.1.9 + secret-toolkit 0.8.0 #59

Closed
darwinzer0 opened this issue Mar 3, 2023 · 1 comment
Closed

Error updating to v1.1.9 + secret-toolkit 0.8.0 #59

darwinzer0 opened this issue Mar 3, 2023 · 1 comment

Comments

@darwinzer0
Copy link
Contributor

When I update the Cargo.toml file to use secret cosmwasm v.1.1.9-secret and secret-toolkit v.0.8.0, at compilation I get the following error about incompatible versions of the zeroize package:

error: failed to select a version for `zeroize`.
    ... required by package `elliptic-curve v0.12.0`
    ... which satisfies dependency `elliptic-curve = "^0.12"` of package `k256 v0.11.1`
    ... which satisfies dependency `k256 = "^0.11.1"` of package `cosmwasm-crypto v1.1.9 (https://github.com/scrtlabs/cosmwasm?tag=v1.1.9-secret#e40a15f0)`
    ... which satisfies git dependency `cosmwasm-crypto` of package `cosmwasm-std v1.1.9 (https://github.com/scrtlabs/cosmwasm?tag=v1.1.9-secret#e40a15f0)`
    ... which satisfies git dependency `cosmwasm-std` of package `cosmwasm-storage v1.1.9 (https://github.com/scrtlabs/cosmwasm?tag=v1.1.9-secret#e40a15f0)`
    ... which satisfies git dependency `cosmwasm-storage` of package `secret-toolkit-storage v0.8.0 (https://github.com/scrtlabs/secret-toolkit?tag=v0.8.0#dfbcc26e)`
    ... which satisfies git dependency `secret-toolkit-storage` of package `secret-toolkit v0.8.0 (https://github.com/scrtlabs/secret-toolkit?tag=v0.8.0#dfbcc26e)`
    ... which satisfies git dependency `secret-toolkit` of package `snip20-reference-impl v1.0.0 (/home/ben/secret-network-dev/snip20-reference-impl)`
versions that meet the requirements `^1.5` are: 1.5.7, 1.5.6, 1.5.5, 1.5.4, 1.5.3

all possible versions conflict with previously selected packages.

  previously selected package `zeroize v1.3.0`
    ... which satisfies dependency `zeroize = ">=1, <1.4"` (locked to 1.3.0) of package `curve25519-dalek v3.2.1`
    ... which satisfies dependency `curve25519-dalek = "^3"` (locked to 3.2.1) of package `ed25519-zebra v3.1.0`
    ... which satisfies dependency `ed25519-zebra = "^3"` (locked to 3.1.0) of package `cosmwasm-crypto v1.1.9 (https://github.com/scrtlabs/cosmwasm?tag=v1.1.9-secret#e40a15f0)`
    ... which satisfies git dependency `cosmwasm-crypto` of package `cosmwasm-std v1.1.9 (https://github.com/scrtlabs/cosmwasm?tag=v1.1.9-secret#e40a15f0)`
    ... which satisfies git dependency `cosmwasm-std` of package `cosmwasm-storage v1.1.9 (https://github.com/scrtlabs/cosmwasm?tag=v1.1.9-secret#e40a15f0)`
    ... which satisfies git dependency `cosmwasm-storage` of package `secret-toolkit-storage v0.8.0 (https://github.com/scrtlabs/secret-toolkit?tag=v0.8.0#dfbcc26e)`
    ... which satisfies git dependency `secret-toolkit-storage` of package `secret-toolkit v0.8.0 (https://github.com/scrtlabs/secret-toolkit?tag=v0.8.0#dfbcc26e)`
    ... which satisfies git dependency `secret-toolkit` of package `snip20-reference-impl v1.0.0 (/home/ben/secret-network-dev/snip20-reference-impl)`

failed to select a version for `zeroize` which could resolve this conflict

It seems to indicate that the ed25519-zebra and k256 dependencies in the cosmwasm crypto package are incompatible: https://github.com/scrtlabs/cosmwasm/blob/e40a15f04dae80680dbe22aef760e5eaab6b0a19/packages/crypto/Cargo.toml#L25

For reference, the only change I made was to update Cargo.toml file in the snip20-reference-impl to look like this:

cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", tag = "v1.1.9-secret" }
secret-toolkit = { git = "https://github.com/scrtlabs/secret-toolkit", tag = "v0.8.0", features = [
  "permit",
  "viewing-key",
] }
secret-toolkit-crypto = { git = "https://github.com/scrtlabs/secret-toolkit", tag = "v0.8.0", features = ["hash", "rand",] }
@darwinzer0
Copy link
Contributor Author

darwinzer0 commented Mar 18, 2023

Just follow up, I see there's been some discussion about a related error over on the curve25519-dalek repo: dalek-cryptography/x25519-dalek#92.

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

1 participant