Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

ethereumproject/evm-ffi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SputnikVM FFI Bindings

This repo contains C and Go bindings for the SputnikVM core library.

Usage

C

In c folder, run make build. It will generate an object file libsputnikvm.so, and you can use the header file sputnikvm.h to interact with it.

Go

Import the sputnikvm library to your application:

import "github.com/ethereumproject/evm-ffi/go/sputnikvm"

Build a static library for the C FFI, which will give you an libsputnikvm.a file:

cd c
make build

When building your Go application, pass CGO_LDFLAGS to link the C library.

CGO_LDFLAGS="/path/to/libsputnikvm.a -ldl -lm" go build .

About

C and golang bindings for SputnikVM.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 48.6%
  • Go 28.8%
  • C 21.3%
  • Other 1.3%