crypto

package
v0.0.0-...-87de0be Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CompressKey

func CompressKey(k *ecdsa.PublicKey) []byte

func DecompressKey

func DecompressKey(key []byte) (*ecdsa.PublicKey, error)

func Sign

func Sign(hash []byte, k *ecdsa.PrivateKey) ([]byte, error)

func Verify

func Verify(k *ecdsa.PublicKey, hash []byte, sigBuf []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