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.
Click to show internal directories.
Click to hide internal directories.