Skip to content

Commit 77c4c3d

Browse files
committed
Update documentation and names
1 parent 9339902 commit 77c4c3d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/vm-derive/src/hash_function.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ impl syn::parse::Parse for Options {
3636
}
3737
}
3838

39-
struct Blake3Hasher {
39+
struct Blake2Hasher {
4040
hasher: Blake2b512,
4141
}
4242

43-
impl Blake3Hasher {
43+
impl Blake2Hasher {
4444
fn new() -> Self {
4545
Self {
4646
hasher: Blake2b512::new(),
@@ -52,7 +52,7 @@ impl Blake3Hasher {
5252
}
5353
}
5454

55-
impl Hasher for Blake3Hasher {
55+
impl Hasher for Blake2Hasher {
5656
fn write(&mut self, bytes: &[u8]) {
5757
self.hasher.update(bytes);
5858
}
@@ -68,7 +68,7 @@ pub fn hash_function_impl(attr: TokenStream, input: TokenStream) -> TokenStream
6868
// Just verify that this is actually a function
6969
let function: syn::ItemFn = maybe!(syn::parse2(input.clone()));
7070

71-
let mut hasher = Blake3Hasher::new();
71+
let mut hasher = Blake2Hasher::new();
7272
function.hash(&mut hasher);
7373
let hash = hasher.consume();
7474

packages/vm/src/modules/file_system_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ fn raw_module_version_discriminator() -> String {
9595
/// By default, this derived by performing the following operation:
9696
///
9797
/// ```ignore
98-
/// BLAKE3(
98+
/// BLAKE2(
9999
/// manual module version,
100100
/// wasmer version requirement,
101-
/// BLAKE3(cost_fn)
101+
/// BLAKE2(cost_fn)
102102
/// )
103103
/// ```
104104
///

0 commit comments

Comments
 (0)