testvectors

package
v0.0.0-...-3218bef Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityMetadataTestVector

type EntityMetadataTestVector struct {
	Kind                    string                        `json:"kind"`
	SignatureContext        string                        `json:"signature_context"`
	EntityMeta              registry.EntityMetadata       `json:"entity_meta"`
	SignedEntityMeta        registry.SignedEntityMetadata `json:"signed_entity_meta"`
	EncodedEntityMeta       []byte                        `json:"encoded_entity_meta"`
	EncodedSignedEntityMeta []byte                        `json:"encoded_signed_entity_meta"`
	Valid                   bool                          `json:"valid"`
	SignerPrivateKey        []byte                        `json:"signer_private_key"`
	SignerPublicKey         signature.PublicKey           `json:"signer_public_key"`
}

EntityMetadataTestVector is an entity metadata test vector.

func MakeEntityMetadataTestVector

func MakeEntityMetadataTestVector(kind string, meta *registry.EntityMetadata, valid bool) EntityMetadataTestVector

MakeEntityMetadataTestVector generates a new test vector from an entity metadata.

func MakeEntityMetadataTestVectorWithSigner

func MakeEntityMetadataTestVectorWithSigner(
	kind string,
	meta *registry.EntityMetadata,
	valid bool,
	signer signature.Signer,
) EntityMetadataTestVector

MakeEntityMetadataTestVectorWithSigner generates a new test vector from an entity metadata using a specific signer.

Jump to

Keyboard shortcuts

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