crypto

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyVersion = 'T'
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(pub kyber.Point, priv kyber.Scalar, b []byte) []byte

func Encrypt

func Encrypt(pub kyber.Point, priv kyber.Scalar, b []byte) []byte

func PrivateKeyBytes

func PrivateKeyBytes(scalar kyber.Scalar) []byte

func PrivateKeyFromHex

func PrivateKeyFromHex(s string) (kyber.Scalar, error)

func PubKeyFromBase58

func PubKeyFromBase58(s string) (kyber.Point, error)

func PubKeyFromBytes

func PubKeyFromBytes(b []byte) (kyber.Point, error)

func PublicKey

func PublicKey(scalar kyber.Scalar) kyber.Point

func PublicKeyBytes

func PublicKeyBytes(point kyber.Point) []byte

func PublicKeyString

func PublicKeyString(point kyber.Point) string

func Sign

func Sign(scalar kyber.Scalar, msg []byte) ([]byte, error)

func Verify

func Verify(pub kyber.Point, msg, sig []byte) error

Types

This section is empty.

Directories

Path Synopsis
Package bn256 implements a particular bilinear group.
Package bn256 implements a particular bilinear group.

Jump to

Keyboard shortcuts

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