Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ismyhc/vsecp256k1

A V module that wraps libsecp256k1
https://github.com/ismyhc/vsecp256k1

bitcoin nostr secp256k1 vlang vlang-module vlang-package

Last synced: 4 months ago
JSON representation

A V module that wraps libsecp256k1

Awesome Lists containing this project

README

        

# vsecp256k1 - V module that wraps libsecp256k1

![V Language](https://img.shields.io/badge/language-V-blue.svg)
![C Langauge](https://img.shields.io/badge/language-C-blue.svg)

This library currently wraps [libsecp256k1 v0.5.1](https://github.com/bitcoin-core/secp256k1) for use in V. It is a work in progress so take that into account.

#### To use this code, you need to install the following libraries:
- automake
- libtool

### MacOS
`brew install automake libtool`

### Ubuntu
`sudo apt-get install automake libtool unzip`

### Fedora
`sudo dnf install automake libtool unzip`

### CentOS
`sudo yum install automake libtool unzip`

### Windows (Not tested)
- Download and install [MSYS2](https://www.msys2.org/)
- Open MSYS2 terminal and run the following command:
`pacman -S automake libtool`

### How to compile the C requirements:
- Make sure you have automake and libtool installed
- Navigate to where the module was installed
- Run the following command assuming you .vmodules locations is like bellow:
`v run ~/.vmodules/ismyhc/vsecp256k1/build.vsh`

This should compile the C code and generate the necessary files for the V module. You should only have to do this once.

### How to use the module:
`import ismyhc.vsecp256k1`

- TODO: Add examples
- TODO: Add documentation
- TODO: Add tests