aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2016-05-04 23:10:15 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2016-05-04 23:10:15 -0400
commit27ff4c4aa4988c65caf6093b9dcc3c00f6c00743 (patch)
treeb22a3d12bbb32f1df4a757591304d576c00bf318 /main.go
parent5185b1ea87c04fcfe6d96797ac7a0d363bf1c4de (diff)
downloadpos-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.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index 2058437..3bf3f6b 100644
--- a/main.go
+++ b/main.go
@@ -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))
*/
}