Ver código fonte

Added hash256.rs

Lorenz Bung 8 anos atrás
pai
commit
84800baeca
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      hw7/task1/src/hash256.rs

+ 5
- 0
hw7/task1/src/hash256.rs Ver arquivo

@@ -0,0 +1,5 @@
1
+mod hasher_sha256
2
+
3
+pub fn verify_product(base: usize, number: usize, difficulty: String) -> Option {
4
+    hasher_sha256::hash(base * number)
5
+}

Carregando…
Cancelar
Salvar