16 releases
0.5.2-dev.1 | Feb 21, 2024 |
---|---|
0.5.1 | Dec 11, 2023 |
0.5.0 | Nov 6, 2023 |
0.4.4 | Jul 13, 2023 |
0.1.3 | Jul 21, 2022 |
#6 in #phala
437 downloads per month
Used in 4 crates
(2 directly)
110KB
2K
SLoC
Phala Blockchain
Phala Network is the offchain computing protocol, powering the decentralized execution layer for AI agents.
Native Build
Dependencies
Expand
-
System dependencies
- Ubuntu (tested with 22.04)
apt install -y build-essential pkg-config libssl-dev protobuf-compiler
- macOS
brew install protobuf
- See here for more protobuf installation options
-
Rust
curl https://sh.rustup.rs -sSf | sh
-
Substrate dependencies:
git submodule update --init sh ./scripts/init.sh
-
LLVM 14
wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh ./llvm.sh 14
Build the blockchain and bridge
Make sure you have Rust and LLVM-10 installed.
Note for Mac users: you also need
llvm
andbinutils
from Homebrew or MacPort, and to add their binaries to your $PATH
Run git submodule update --init
to fetch submodules before build if you haven't add option --recursive
when clone code.
cargo build --release
The build script enforces LLVM-10 or newer is used. LLVM-10 is needed because of the wasm port of rust
crypto library, ring
. We have to compile the C code into wasm while keeping the compatibility with
the current rustc.
Run
Please refer to the run scripts
Sub-pages
External Resources
- Docs: Phala Network Documentations
- Security Audit: Audit reports
- phala-docker: The production dockerfiles, including the blockchain, pherry, and pRuntime.
- Responsible Disclosure
Dependencies
~25–39MB
~570K SLoC