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.

22 lines
513 B

  1. #### Dvote Tree
  2. Implementation of dvote tree structure. Currently based on iden3 merkle tree.
  3. Example of usage:
  4. ```
  5. T := tree.Tree {namespace: "vocdoni"}
  6. if T.init() != nil { fmt.Println("Cannot create tree database") }
  7. err := T.addClaim([]byte("Hello you!"))
  8. if err != nil {
  9. fmt.Println("Claim already exist")
  10. }
  11. mpHex, err := T.genProof([]byte("Hello you!"))
  12. fmt.Println(mpHex)
  13. fmt.Println(T.checkProof([]byte("Hello you!"), mpHex))
  14. T.close()
  15. ```
  16. ### To-Do
  17. + Add export/import methods