testing

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Alice is the test key A.
	Alice = newEd25519TestKey("oasis-runtime-sdk/test-keys: alice")
	// Bob is the test key A.
	Bob = newEd25519TestKey("oasis-runtime-sdk/test-keys: bob")
	// Charlie is the test key C.
	Charlie = newEd25519TestKey("oasis-runtime-sdk/test-keys: charlie")
	// Cory is the default test key used by oasis-net-runner.
	Cory = newEd25519TestKey("ekiden test entity key seed")
	// Dave is the test key D.
	Dave = newSecp256k1TestKey("oasis-runtime-sdk/test-keys: dave")
	// Erin is the test key E.
	Erin = newSecp256k1TestKey("oasis-runtime-sdk/test-keys: erin")
	// Frank is the test key F.
	Frank = newSr25519TestKey("oasis-runtime-sdk/test-keys: frank")
	// Grace is the test key G.
	Grace = newSr25519TestKey("oasis-runtime-sdk/test-keys: grace")

	// TestAccounts contains all test keys.
	TestAccounts = map[string]TestKey{
		"alice":   Alice,
		"bob":     Bob,
		"charlie": Charlie,
		"cory":    Cory,
		"dave":    Dave,
		"erin":    Erin,
		"frank":   Frank,
		"grace":   Grace,
	}
)

Functions

This section is empty.

Types

type TestKey

type TestKey struct {
	SecretKey []byte
	Signer    signature.Signer
	Address   types.Address
	SigSpec   types.SignatureAddressSpec

	// EthAddress is the corresponding Ethereum address if the key is secp256k1.
	EthAddress *ethCommon.Address
}

TestKey is a key used for testing.

Jump to

Keyboard shortcuts

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