bls

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey = bls.PublicKey

func PublicKeyFromBytes

func PublicKeyFromBytes(b []byte) (*PublicKey, error)

PublicKeyFromBytes returns a PublicKey from a byte slice.

func PublicKeyFromHexString

func PublicKeyFromHexString(s string) (*PublicKey, error)

PublicKeyFromHexString returns a PublicKey from a hex string.

type SecretKey

type SecretKey = bls.SecretKey

func NewSecretKeyByCSPRNG

func NewSecretKeyByCSPRNG() *SecretKey

NewSecretKeyByCSPRNG returns a new SecretKey generated by CSPRNG.

type Signature

type Signature = bls.Sign

func SignatureFromBytes

func SignatureFromBytes(b []byte) (*Signature, error)

SignatureFromBytes returns a Signature from a byte slice.

func SignatureFromHexString

func SignatureFromHexString(s string) (*Signature, error)

SignatureFromHexString returns a Signature from a hex string.

Jump to

Keyboard shortcuts

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