Sleepy
A simple and clean nakamoto consensus.
Install / Use
/learn @cryptape/SleepyREADME
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 | shSleepy also requires
gcc,g++, andlibssl-dev/opensslpackages to be installed. -
OSX:
$ curl https://sh.rustup.rs -sSf | shclangis 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
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
