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 19326669db First implementation of tree package 6 years ago
..
README.md First implementation of tree package 6 years ago
tree.go First implementation of tree package 6 years ago

README.md

Dvote Tree

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

Example of usage:

  T := tree.Tree {namespace: "vocdoni"}
  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