You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building DIDKit according to the instructions found here, I encountered to errors relating to duplication of definitions of sha256 and generate_ed25519. These definitions are actually found in the ssi crate and is causing the building process to fail.
These are the outputs:
error[E0428]: the name `sha256` is defined multiple times
--> /home/mikerah/Documents/Projects/ssi/src/hash.rs:13:1
|
4 | pub fn sha256(data: &[u8]) -> Result<[u8; 32], Error> {
| ----------------------------------------------------- previous definition of the value `sha256` here
...
13 | pub fn sha256(data: &[u8]) -> Result<[u8; 32], Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `sha256` redefined here
|
= note: `sha256` must be defined only once in the value namespace of this module
Specifically, with our introduction of WASM, there were competing features for ssi. We believe that packaging for crates.io and adding some more sophistication in our build process will resolve this.
We have tracked this issue more broadly here to ensure it doesn't re-occur: #63
Describe the bug
When building DIDKit according to the instructions found here, I encountered to errors relating to duplication of definitions of sha256 and generate_ed25519. These definitions are actually found in the ssi crate and is causing the building process to fail.
These are the outputs:
To Reproduce
Steps from DIDKit docs
Expected behavior
Expected cargo build to complete without any errors.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: