tecrepo

module
v0.0.0-...-d6b1dc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: Apache-2.0

README

TEC's event-driven consensus algorithm

TEC's event-driven consensus model is designed to revolutionize the way transactions are validated and recorded in a distributed network. Unlike traditional consensus algorithms that rely on transaction-based processing, TEC focuses on the ordering and validation of events, allowing for near-instantaneous settlement and confirmation. This unique approach enables the TEC-based blockchain, known as SEUM, to achieve unparalleled scalability and efficiency while maintaining the highest level of security.

Note: Requires Go 1.20+

Build Environment

You'll need go installed and the required environment variables set, which can be done with the following commands:

echo export GOPATH=\"\$HOME/go\" >> ~/.bash_profile
echo export PATH=\"\$PATH:\$GOPATH/bin\" >> ~/.bash_profile
Get Source Code
git clone https://github.com/bsiadmin/tecrepo.git
cd tecrepo
Compile
make install

to put the binary in $GOPATH/bin or use:

make build

to put the binary in ./build.

The latest CometBFT is now installed. You can verify the installation by running:

tecbft version

Run

To start a one-node blockchain with a simple in-process application:

tecbft init
tecbft node --proxy_app=kvstore

Directories

Path Synopsis
abci
server
Package server is used to start a new ABCI server.
Package server is used to start a new ABCI server.
cmd
merkle
Package merkle computes a deterministic minimal height Merkle tree hash.
Package merkle computes a deterministic minimal height Merkle tree hash.
xchacha20poly1305
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
Package evidence handles all evidence storage and gossiping from detection to block proposal.
Package evidence handles all evidence storage and gossiping from detection to block proposal.
internal
test
Package factory provides generation code for common structs in CometBFT.
Package factory provides generation code for common structs in CometBFT.
libs
cli
events
Package events - Pub-Sub in go with event caching
Package events - Pub-Sub in go with event caching
flowrate
Package flowrate provides the tools for monitoring and limiting the flow rate of an arbitrary data stream.
Package flowrate provides the tools for monitoring and limiting the flow rate of an arbitrary data stream.
json
Package json provides functions for marshaling and unmarshaling JSON in a format that is backwards-compatible with Amino JSON encoding.
Package json provides functions for marshaling and unmarshaling JSON in a format that is backwards-compatible with Amino JSON encoding.
log
net
os
pubsub
Package pubsub implements a pub-sub model with a single publisher (Server) and multiple subscribers (clients).
Package pubsub implements a pub-sub model with a single publisher (Server) and multiple subscribers (clients).
pubsub/query
Package query provides a parser for a custom query format:
Package query provides a parser for a custom query format:
package light provides a light client implementation.
package light provides a light client implementation.
rpc
tec
Deprecated: Priority mempool will be removed in the next major release.
Deprecated: Priority mempool will be removed in the next major release.
Package node is the main entry point, where the Node struct, which represents a full node, is defined.
Package node is the main entry point, where the Node struct, which represents a full node, is defined.
p2p
pex
upnp
Taken from taipei-torrent.
Taken from taipei-torrent.
Package privval provides different implementations of the types.PrivValidator.
Package privval provides different implementations of the types.PrivValidator.
proto
rpc
core
Package core defines the CometBFT RPC endpoints.
Package core defines the CometBFT RPC endpoints.
jsonrpc
HTTP RPC server supporting calls via uri params, jsonrpc over HTTP, and jsonrpc over websockets
HTTP RPC server supporting calls via uri params, jsonrpc over HTTP, and jsonrpc over websockets
jsonrpc/server
Commons for HTTP handling
Commons for HTTP handling
scripts
metricsgen
metricsgen is a code generation tool for creating constructors for CometBFT metrics types.
metricsgen is a code generation tool for creating constructors for CometBFT metrics types.
metricsgen/metricsdiff
metricsdiff is a tool for generating a diff between two different files containing prometheus metrics.
metricsdiff is a tool for generating a diff between two different files containing prometheus metrics.
indexer/sink/psql
Package psql implements an event sink backed by a PostgreSQL database.
Package psql implements an event sink backed by a PostgreSQL database.
test
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL