This repository is dedicated to sharing material related to the Sui protocol, developed at Novi Financial (formerly Calibra). Software is provided for research-purpose only and is not meant to be used in production.
Sui extends Sui by allowing objects to be transacted.
Sui allows a set of distributed authorities, some of which are Byzantine, to maintain a high-integrity and availability settlement system for pre-funded payments. It can be used to settle payments in a native unit of value (crypto-currency), or as a financial side-infrastructure to support retail payments in fiat currencies. Sui is based on Byzantine Consistent Broadcast as its core primitive, foregoing the expenses of full atomic commit channels (consensus). The resulting system has low-latency for both confirmation and payment finality. Remarkably, each authority can be sharded across many machines to allow unbounded horizontal scalability. Our experiments demonstrate intra-continental confirmation latency of less than 100ms, making Sui applicable to point of sale payments. In laboratory environments, we achieve over 80,000 transactions per second with 20 authorities---surpassing the requirements of current retail card payment networks, while significantly increasing their robustness.
cargo build --release
cd target/release
This will create fastx
and wallet
binaries in target/release
directory.
./fastx genesis
The genesis command creates 4 authorities, 5 user accounts each with 5 gas objects.
The network configuration are stored in network.conf
and can be used subsequently to start the network.
A wallet.conf
will also be generated to be used by the wallet
binary to manage the newly created accounts.
Run the following command to start the local Sui network:
./fastx start
or
./fastx start --config [config file path]
The network config file path is defaulted to ./network.conf
if not specified.
To start the interactive wallet:
./wallet
or
./wallet --config [config file path]
The wallet config file path is defaulted to ./wallet.conf
if not specified.
The following commands are supported by the interactive wallet:
addresses Obtain the Account Addresses managed by the wallet
call Call Move
help Prints this message or the help of the given subcommand(s)
new-address Generate new address and keypair
object Get obj info
objects Obtain all objects owned by the account address
publish Publish Move modules
sync Synchronize client state with authorities
transfer Transfer funds
Use help <command>
to see more information on each command.
The wallet can also be use without the interactive shell
USAGE:
wallet --no-shell [SUBCOMMAND]
sui@MystenLab release % ./wallet --no-shell addresses
Showing 5 results.
4f145f9a706ae4932452c90ce006fbddc8ab2ced34584f26d8953df14a76463e
47ea7f45ca66fc295cd10fbdf8a41828db2ed71c145476c710e04871758f48e9
e91c22628771f1465947fe328ed47983b1a1013afbdd1c8ded2009ec4812054d
9420c11579a0e4a75a48034d9617fd68406de4d59912e9d08f5aaf5808b7013c
1be661a8d7157bffbb2cf7f652d270bbefb07b0b436aa10f2c8bdedcadcc22cb
- Sui is based on FastPay: FastPay: High-Performance Byzantine Fault Tolerant Settlement
Read Eng Plan.
The content of this repository is licensed as Apache 2.0