testutils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExampleJSON = `` /* 13990-byte string literal not displayed */

	ExampleNDF = []byte(ExampleJSON)
	NDF, _     = ndf.Unmarshal(ExampleNDF)
)

Functions

func LoadEllipticPublicKey

func LoadEllipticPublicKey(i interface{}) (*ec.PrivateKey, error)

func LoadPrivateKeyTesting

func LoadPrivateKeyTesting(i interface{}) (*rsa.PrivateKey, error)

func LoadPublicKeyTesting

func LoadPublicKeyTesting(i interface{}) (*rsa.PublicKey, error)

func NewContextTesting

func NewContextTesting(i interface{}) (context.Context, context.CancelFunc)

NewContextTesting constructs a context.Context object on the local Unix default domain (UDP) port

func SignRoundInfoEddsa

func SignRoundInfoEddsa(ri *pb.RoundInfo, key *ec.PrivateKey, i interface{}) error

func SignRoundInfoRsa

func SignRoundInfoRsa(ri *pb.RoundInfo, i interface{}) error

Utility function which signs a round info message

Types

This section is empty.

Jump to

Keyboard shortcuts

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