gcryptotest

package
v0.0.0-...-7b2d441 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneFinalizedCommonMessageSignatureProof

func CloneFinalizedCommonMessageSignatureProof(
	in gcrypto.FinalizedCommonMessageSignatureProof,
) gcrypto.FinalizedCommonMessageSignatureProof

CloneFinalized returns a deep copy of in, which is very useful for tests that need to assert that modifications to the proof cause validation to fail.

There has not been a use case for this in production code, hence why this function lives in gcryptotest.

func DeterministicEd25519Signers

func DeterministicEd25519Signers(n int) []gcrypto.Ed25519Signer

DeterministicEd25519Signers returns a deterministic slice of ed25519 signer values.

There are two advantages to using deterministic keys. First, subsequent runs of the same test will use the same keys, so logs involving keys or IDs will not change across runs, simplifying the debugging process. Second, the generated keys are cached, so there is effectively zero CPU time cost for additional tests calling this function, beyond the first call.

func GenerateKeys

func GenerateKeys(w io.Writer) error

func TestCommonMessageSignatureProofCompliance_Ed25519

func TestCommonMessageSignatureProofCompliance_Ed25519(
	t *testing.T,
	s gcrypto.CommonMessageSignatureProofScheme,
)

TestCommonMessageSignatureProofCompliance_Ed25519 tests the basic features of an implementation of CommonMessageSignatureProof compatible with ed25519 signatures.

TODO: this signature will likely change in the future to accommodate other types of public keys, and to be aware of the presence or absence of particular features of a proof.

Types

This section is empty.

Jump to

Keyboard shortcuts

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