You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p4u a503c6555e Change go-iden3 dependencies to vocdoni/go-iden3 6 years ago
..
README.md Fix names and update README 6 years ago
tree.go Change go-iden3 dependencies to vocdoni/go-iden3 6 years ago

README.md

dvote Tree

Implementation of dvote tree structure. Currently based on iden3 merkle tree.

Example of usage:

  T := tree.Tree
  if T.Init() != nil { fmt.Println("Cannot create tree database") }
  err := T.AddClaim([]byte("Hello you!"))
  if err != nil {
    fmt.Println("Claim already exist")
  }
  mpHex, err := T.GenProof([]byte("Hello you!"))
  fmt.Println(mpHex)
  fmt.Println(T.CheckProof([]byte("Hello you!"), mpHex))
  T.Close()

To-Do

  • Add export/import methods