Go to file
Tzu-Jung Lee 84c64c1018 wip: misc updates
AddClaim / AddSupport is working with minimal testing done so far.
RemoveClaim / RemoveSupport is implemented, but not tested yet.

Some known issues:

Currently, we update the BestClaim for each node in a lazy fashion.
Each node could add/remove claims/supports without recalculating hash
until its being obeserved externally.

However, due to the "Takeover Delay" bidding rule, as the block number
increases, the bestClaim might changes implicitly. The Trie can't detect
this passively, and would need some mechanism for this.
2018-07-03 22:03:55 -07:00
cmd/claimtrie wip: misc updates 2018-07-03 22:03:55 -07:00
claim.go wip: misc updates 2018-07-03 22:03:55 -07:00
claimid.go wip: misc updates 2018-07-03 22:03:55 -07:00
claimtrie.go wip: misc updates 2018-07-03 22:03:55 -07:00
claimtrie_test.go wip: misc updates 2018-07-03 22:03:55 -07:00
error.go initial import 2018-07-03 14:56:10 -07:00
node.go wip: misc updates 2018-07-03 22:03:55 -07:00
node_test.go wip: misc updates 2018-07-03 22:03:55 -07:00
README.md wip: misc updates 2018-07-03 22:03:55 -07:00

ClaimTrie

coming soon

Installation

coming soon

Usage

coming soon

Running from Source

This project requires Go v1.10 or higher.

go get -u -v github.com/lbryio/claimtrie

Examples

Refer to claimtrie for an interactive CLI tool.

NAME:
   claimtrie - A CLI tool for ClaimTrie

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     add-claim, ac      Claim a name with specified amount. (outPoint is generated randomly, if unspecified)
     add-support, as    Add support to a specified Claim. (outPoint is generated randomly, if unspecified)
     spend-claim, sc    Spend a specified Claim.
     spend-support, ss  Spend a specified Support.
     show, s            Show the Key-Value pairs of the Stage or specified commit. (links nodes are showed if -a is also specified)
     merkle, m          Show the Merkle Hash of the Stage.
     commit, c          Commit the current Stage to commit database.
     reset, r           Reset the Stage to a specified commit.
     log, l             List the commits in the coommit database.
     shell, sh          Enter interactive mode
     help, h            Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Testing

go test -v github.com/lbryio/claimtrie
gocov test -v github.com/lbryio/claimtrie 1>/dev/null

Contributing

coming soon

License

This project is MIT licensed.

Security

We take security seriously. Please contact security@lbry.io regarding any security issues. Our PGP key is here if you need it.

Contact

The primary contact for this project is @roylee17 (roylee@lbry.io)