We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb54935 commit 91a21e2Copy full SHA for 91a21e2
README.md
@@ -35,12 +35,12 @@ Then run `cargo build`.
35
## Usage
36
37
```rust
38
-extern crate multihash;
+use multihash::Sha2_256;
39
40
-use multihash::{encode, decode, Hash};
41
-
42
-let hash = encode(Hash::SHA2256, b"my hash").unwrap();
43
-let multi = decode(&hash).unwrap();
+fn main() {
+ let hash = Sha2_256::digest(b"my hash");
+ println!("{:?}", hash);
+}
44
```
45
46
## Supported Hash Types
@@ -49,6 +49,7 @@ let multi = decode(&hash).unwrap();
49
* `SHA2-256`
50
* `SHA2-512`
51
* `SHA3`/`Keccak`
52
+* `Blake2b-256`/`Blake2b-512`/`Blake2s-128`/`Blake2s-256`
53
54
## Maintainers
55
0 commit comments