testonly

package
v0.0.0-...-256b879 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package testonly provides common functions used to setup tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHex

func DecodeHex(t *testing.T, s string) []byte

DecodeHex decodes a hex-encoded string

func Ed25519Priv

func Ed25519Priv(t *testing.T, seed string) ed25519.PrivateKey

Ed25519Priv creates a new Ed25519 private key from a seed

func RSAPriv

func RSAPriv(t *testing.T) *rsa.PrivateKey

RSAPriv generates a new RSA key

Types

This section is empty.

Jump to

Keyboard shortcuts

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