Skip to content

Commit

Permalink
Merge 15f6d42 into 8eeebd1
Browse files Browse the repository at this point in the history
  • Loading branch information
wanseob committed Nov 24, 2018
2 parents 8eeebd1 + 15f6d42 commit 01aa04f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion contracts/tree.sol
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,21 @@ library PatriciaTree {
bytes32 potentialSiblingValue,
uint branchMask,
bytes32[] _siblings
) {
return getNonInclusionProofWithHashedKey(tree, keccak256(key));
}

function getNonInclusionProofWithHashedKey(Tree storage tree, bytes32 hashedKey) internal view returns (
bytes32 potentialSiblingLabel,
bytes32 potentialSiblingValue,
uint branchMask,
bytes32[] _siblings
){
uint length;
uint numSiblings;

// Start from root edge
D.Label memory label = D.Label(keccak256(key), 256);
D.Label memory label = D.Label(hashedKey, 256);
D.Edge memory e = tree.rootEdge;
bytes32[256] memory siblings;

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solidity-patricia-tree",
"version": "1.1.0",
"version": "1.1.1",
"description": "Patricia Tree solidity implemenation",
"directories": {
"test": "test"
Expand Down

0 comments on commit 01aa04f

Please sign in to comment.