secp256k1

package module
v0.0.0-...-27b0155 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2018 License: MIT Imports: 2 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

secp256k1 bindings for Go

General info

The Go API mirrors the API of the C implementation. Therefore, please consult c-secp256k1/include/secp256k1.h for documentation. Going forward I plan to implement a new API that is more aligned with the APIs from Go's standard lib crypto packages. Then, it makes more sense to add a standalone documentation, and hopefully breaking changes in the C implementation can be abstracted away.

How to get and build

go get -d github.com/toxeus/go-secp256k1
cd $GOPATH/src/github.com/toxeus/go-secp256k1
git submodule update --init # not needed for Go >= 1.6
cd c-secp256k1
./autogen.sh && ./configure && make
cd ..
go install

How to update

cd $GOPATH/src/github.com/toxeus/go-secp256k1
git submodule update
cd c-secp256k1
make distclean && ./autogen.sh && ./configure && make
cd ..
go clean && go install

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pubkey_create

func Pubkey_create(seckey [32]byte, compressed bool) ([]byte, bool)

func Pubkey_verify

func Pubkey_verify(pubkey []byte) bool

func Seckey_verify

func Seckey_verify(seckey [32]byte) bool

func Sign

func Sign(msgHash [hashLen]byte, seckey [32]byte, nonce *[32]byte) ([]byte, bool)

func Start

func Start()

func Stop

func Stop()

func Verify

func Verify(msgHash [hashLen]byte, sig []byte, pubkey []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址