Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Latest commit

 

History

History
55 lines (38 loc) · 1.45 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.45 KB

at2-node

at2-node

An implementation of a distributed ledger using AT2 (Asynchronous Trustworthy Transfers). It you allows to send a certain amount of an asset to a chosen identity provided that you have enough in your account, while being byzantine resistant.

overview

There are two binaries, one for the server and one for the client, both in rust. You can install both with cargo install --path ..

You can find more technical informations in technical.md.

server

# generate a server config
server config new 127.0.0.1:300{1,2} > server-config

# extract your shareable node information
server config get-node < server-config

# get the others nodes information
cat other nodes informations >> server-config

# start the node
server run < server-config

client

# generate a client config
client config new http://127.0.0.1:3001 > client-config

# get the recipient public key
recipient=0123456789abcdef

# send some asset
client send-asset $recipient 99 < client-config

roadmap

See the issues for up-to-date advances.

  • confirm transaction
  • handle account per client
  • catchup mechanism for the accounts
  • store state on disk to restart after crash
  • add observability
  • deploy network of node