Merge
Crypto WASM TESTS
This commit is contained in:
parent
2a00bb35e7
commit
687e6f9642
49 changed files with 6272 additions and 366 deletions
|
|
@ -13,6 +13,12 @@ pub fn sha256_double(data: &[u8]) -> [u8; 32] {
|
|||
|
||||
pub struct Sha256Hasher(sha2::Sha256);
|
||||
|
||||
impl Default for Sha256Hasher {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Sha256Hasher {
|
||||
pub fn new() -> Self {
|
||||
Self(sha2::Sha256::new())
|
||||
|
|
|
|||
Loading…
Reference in a new issue