SkillAgentSearch skills...

Sleepy

A simple and clean nakamoto consensus.

Install / Use

/learn @cryptape/Sleepy
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Sleepy

Build dependencies

We recommend installing Rust through rustup. If you don't already have rustup, you can install it like this:

  • Linux:

    $ curl https://sh.rustup.rs -sSf | sh
    

    Sleepy also requires gcc, g++, and libssl-dev/openssl packages to be installed.

  • OSX:

    $ curl https://sh.rustup.rs -sSf | sh
    

    clang is required. It comes with Xcode command line tools or can be installed with homebrew.

  • Windows

    Make sure you have Visual Studio 2015 with C++ support installed. Next, download and run the rustup installer from https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe, start "VS2015 x64 Native Tools Command Prompt", and use the following command to install and set up the msvc toolchain:

    $ rustup default stable-x86_64-pc-windows-msvc
    

Once you have rustup, build Sleepy from source


Build from source

You should install The PBC library first: https://crypto.stanford.edu/pbc/ .

# download Sleepy code
$ git clone https://github.com/cryptape/sleepy.git
$ cd sleepy

# build in release mode
$ cargo build

This will produce an executable in the ./target/release subdirectory.


Start Sleepy

1、generate config files

You should edit admintool/ntp_servers first, replace it with 2-3 ntp servers which are fast to you.

$ ./admintool/setup.sh

2、start Sleepy, just run

$ ./start.sh

and Sleepy will start four nodes and you can find the log in admintool/release/node{0,1,2,3}/log.

Related Skills

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated1y ago
Forks4

Languages

Rust

Security Score

60/100

Audited on Mar 19, 2025

No findings