mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-09 09:45:21 -04:00
rename mimc mentions to a generic hasher
This commit is contained in:
parent
6b067f067f
commit
71b767ade1
6 changed files with 28 additions and 28 deletions
|
@ -1,12 +1,12 @@
|
|||
const jsStorage = require('./Storage')
|
||||
const mimcHasher = require('./MiMC')
|
||||
const hasherImpl = require('./MiMC')
|
||||
|
||||
class MerkleTree {
|
||||
|
||||
constructor(n_levels, zero_value, defaultElements, prefix, storage, hasher) {
|
||||
this.prefix = prefix
|
||||
this.storage = storage || new jsStorage()
|
||||
this.hasher = hasher || new mimcHasher()
|
||||
this.hasher = hasher || new hasherImpl()
|
||||
this.n_levels = n_levels
|
||||
this.zero_values = []
|
||||
this.totalElements = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue