test

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package test contains predefined set of Keys for testing. Generating private keys is computationally expensive, which slows down tests dramatically. Using a cache of pre-calculated private keys defined here keeps tests fast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodedKey

type EncodedKey struct {
	B64PrivKey string
	B58PeerID  string
}

EncodedKey holds encoded private keys and keyIDs

type KeyData

type KeyData struct {
	PrivKey crypto.PrivKey
	KeyID   key.ID
	// TODO(b5): this should be removed
	PeerID         peer.ID
	EncodedPrivKey string
	EncodedPeerID  string
}

KeyData holds decoded keys and keyIDs

func GetKeyData

func GetKeyData(i int) *KeyData

GetKeyData gets Private Key data for testing

Jump to

Keyboard shortcuts

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