mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
refactor: make class attributes private
Former-commit-id: f9f02cf861f68a08ba6c9976b51180dbe77a8c64 [formerly ed5cdba1e7121fbcfb108b4002b3d3d97b09c530] [formerly d3c394020a4d09adfbaadbe9c935d1cfbe18dd30 [formerly fe45621427]]
Former-commit-id: c54dae6bfb8db441af02a4554a9eba73889ccbd7 [formerly 512328730e47f16bfc3d61b6b77c2c36dd7d8d0d]
Former-commit-id: 1a775fd32ccb6f356954273475b6844a7bc9788e
This commit is contained in:
@@ -13,12 +13,12 @@ import { padArrayEnd } from "./utils"
|
||||
export default class IncrementalMerkleTree {
|
||||
static readonly maxDepth = 32
|
||||
|
||||
protected _root: Node
|
||||
protected readonly _nodes: Node[][]
|
||||
protected readonly _zeroes: Node[]
|
||||
protected readonly _hash: HashFunction
|
||||
protected readonly _depth: number
|
||||
protected readonly _arity: number
|
||||
private _root: Node
|
||||
private readonly _nodes: Node[][]
|
||||
private readonly _zeroes: Node[]
|
||||
private readonly _hash: HashFunction
|
||||
private readonly _depth: number
|
||||
private readonly _arity: number
|
||||
|
||||
/**
|
||||
* Initializes the tree with the hash function, the depth, the zero value to use for zeroes
|
||||
|
||||
Reference in New Issue
Block a user