Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Implement Proof of Absence #133

Merged
merged 2 commits into from
Sep 10, 2015
Merged

Implement Proof of Absence #133

merged 2 commits into from
Sep 10, 2015

Conversation

cesarghali
Copy link
Collaborator

Closes #58, and closes #51.

}

return n.child(bindex[depth]).getLeafCommitmentTimestamp(bindex, depth+1)
return n.child(bindex[depth]).longestPrefixMatch(bindex, depth+1)
}

func (n *node) auditPath(bindex string, depth int) ([][]byte, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make audit path (internal) return the leaf node: ([][]byte, node, error)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

 - auditPath now returnes ([][]byte, node).
 - AuditPath now returns ([][]byte, uint64, error).
 - Delete LongestPrefixMatch.

Minor Changes

 - Cosmetic changes.
gdbelvin added a commit that referenced this pull request Sep 10, 2015
@gdbelvin gdbelvin merged commit 7d15df7 into google:master Sep 10, 2015
@cesarghali cesarghali deleted the proof_of_absence branch September 10, 2015 01:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merkle: Implement Proof of Absence Try to share Merkle tree code
2 participants