Skip to content

A cross platform, cross architecture library for using Secp256k1

Notifications You must be signed in to change notification settings

NicolasDorier/NBitcoin.Secp256k1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBitcoin.Secp256k1

Motivation of this project

This project is meant to create a portable .NET assembly exposing the features of secp256k1. Because cross-compiling the library to lot's of different plateform is difficult, never comprehensibe, and time consuming, we are taking a different approach.

Instead, we build secp256k1 targetting web assembly (wasm), then use a wasm to IL converter tool to build a .NET assembly.

This assembly can then just be used in .NET projects on any runtime supporting .NET Core.

Structure

Dockerfile is pulling a pre-build version of wasi-sdk, and attempt to build the binary from it.

How to build

You need to have docker installed on your system, then you can run

In powershell

.\build.ps1

In bash

./build.sh

The binaries will be found in the bin folder at the root of this repository.

Troubleshooting

It is sometimes helpful to connect inside the container to browse what is going on inside it, so after you ran the build script, you can run:

docker run --rm -ti --entrypoint bash secp256k1

Licence

MIT

About

A cross platform, cross architecture library for using Secp256k1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published