diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2016-05-04 23:10:15 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2016-05-04 23:10:15 -0400 |
| commit | 27ff4c4aa4988c65caf6093b9dcc3c00f6c00743 (patch) | |
| tree | b22a3d12bbb32f1df4a757591304d576c00bf318 /main.go | |
| parent | 5185b1ea87c04fcfe6d96797ac7a0d363bf1c4de (diff) | |
| download | pos-27ff4c4aa4988c65caf6093b9dcc3c00f6c00743.tar.gz | |
Add batch proof extraction: sorting helps more than batching, will have to investigate page faults
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -24,9 +24,11 @@ func main() { m := NewMerkle(*mtype, *height, *fname) m.Build() /* + root := make([]byte, hashSize) + m.Read(root, 0) fmt.Println(root) - id := p.Size() / 2 - proof := p.Proof(id) + id := m.Size()/2 + 1 + proof := m.Proof(id) fmt.Println(verify(id, proof)) */ } |
