Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

riptl/sealevel-go

Repository files navigation

ARCHIVED

This project moved to https://github.com/certusone/radiance/tree/main/pkg/sbf


sealevel-go 🌊

Go library embedding the Solana Sealevel runtime

Built with Go and 🦀 at REDACTED

Summary

This Go library allows you to execute Solana bytecode format programs without a blockchain node.

It interfaces with libsealevel, the C library wrapping solana-bpf-program-loader and solana_rbpf.

How to build

sealevel-go is under heavy development. ️🦺

To run, you'll need to …

  • build libsealevel from Solana sources;
  • install headers and shared library to your path;
# Check out `libsealevel`.
git clone https://github.com/terorie/libsealevel
cd libsealevel

# Build libsealevel
cargo build --release

# Install header
ln -s "$(pwd)/sealevel.h" /usr/local/include/sealevel.h

# Install library (Linux)
ln -s "$(pwd)/target/release/libsealevel.dylib" /usr/local/lib/libsealevel.dylib
# Install library (macOS)
ln -s "$(pwd)/target/release/libsealevel.so" /usr/local/lib/libsealevel.so

Then, simply Go build as usual.

go vet .
go build .
go test .

About

Solana Sealevel in Go (rbpf FFI)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages