secp256k1

package module
v0.0.0-...-77e56d2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: MIT Imports: 2 Imported by: 16

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