File tree Expand file tree Collapse file tree
src/main/java/com/unicity/sdk/shared/smt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import com .fasterxml .jackson .databind .node .ArrayNode ;
99import com .fasterxml .jackson .databind .node .ObjectNode ;
1010import com .unicity .sdk .ISerializable ;
11- import com .unicity .sdk .shared .cbor .CborDecoder ;
1211import com .unicity .sdk .shared .cbor .CborEncoder ;
1312import com .unicity .sdk .shared .hash .DataHash ;
14- import com .unicity .sdk .shared .hash .DataHasher ;
1513import com .unicity .sdk .shared .hash .HashAlgorithm ;
1614import com .unicity .sdk .shared .hash .JavaDataHasher ;
17- import com .unicity .sdk .shared .util .BigIntegerConverter ;
18- import com .unicity .sdk .shared .util .HexConverter ;
1915
20- import java .io .ByteArrayOutputStream ;
21- import java .io .IOException ;
2216import java .math .BigInteger ;
2317import java .util .ArrayList ;
2418import java .util .List ;
@@ -65,7 +59,7 @@ public CompletableFuture<MerkleTreePathVerificationResult> verify(BigInteger req
6559
6660 // Create hasher and compute hash
6761 JavaDataHasher hasher = new JavaDataHasher (HashAlgorithm .SHA256 );
68- hasher .update (BigIntegerConverter . encode ( step .getPath ()));
62+ hasher .update (step .getPath (). toByteArray ( ));
6963 hasher .update (bytes );
7064 DataHash digest = hasher .digest ().join ();
7165 hash = digest .getHash ();
You can’t perform that action at this time.
0 commit comments