Skip to content

Commit

Permalink
Merge pull request #1 from skilesare/patch-1
Browse files Browse the repository at this point in the history
Update lib.mo
  • Loading branch information
icdevs authored Jan 7, 2023
2 parents fc2e00c + 91613c2 commit e69ba09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.mo
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ The root hash of a HashTree. This is the algorithm `reconstruct` described in
https://sdk.dfinity.org/docs/interface-spec/index.html#_certificate
*/

public func withessHash(t : Witness) : Hash {
public func witnessHash(t : Witness) : Hash {
switch (t) {
case (#empty) {
h("\11ic-hashtree-empty");
};
case (#fork(t1,t2)) {
h3("\10ic-hashtree-fork", withessHash(t1), withessHash(t2));
h3("\10ic-hashtree-fork", witnessHash(t1), witnessHash(t2));
};
case (#labeled(l,t)) {
h3("\13ic-hashtree-labeled", l, withessHash(t));
h3("\13ic-hashtree-labeled", l, witnessHash(t));
};
case (#leaf(v)) {
h2("\10ic-hashtree-leaf", v)
Expand Down

0 comments on commit e69ba09

Please sign in to comment.