crv

package
v0.0.0-...-7016494 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

package crv provides wrappers around a number of elliptic curves used in the creation of public keys, creation of signatures, creation of ECDH secrets and verification of signatures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Curve25519

func Curve25519() *curve25519_t

func Secp256k1

func Secp256k1() *secp256k1_t

Types

type Curve

type Curve interface {
	PublicKey(privBytes []byte) ([]byte, error)
	ECDH(privBytes, pubBytes []byte) ([]byte, error)
	Sign(data, privBytes []byte) ([]byte, error)
	Verify(pubBytes, data, sigBytes []byte) bool
}

Jump to

Keyboard shortcuts

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