neofscryptotest

package
v1.25.1-0...-2fdc35d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package neofscryptotest provides a set of helper functions that can make testing easier.

This package is strongly discouraged for use in non-test code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestPublicKeyMarshal

func TestPublicKeyMarshal(t testing.TB, key neofscrypto.PublicKey, blankCons func() neofscrypto.PublicKey)

TestPublicKeyEncoding asserts binary methods of the neofscrypto.PublicKey implementation.

key and constructor result should be both non-nil pointers.

func TestSigner

func TestSigner(t testing.TB, s neofscrypto.Signer)

TestSigner asserts Sign method of the neofscrypto.Signer implementation and Verify method of the corresponding neofscrypto.PublicKey.

s should not be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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