package keys

import "github.com/google/trillian/cmd/createtree/keys"

Index

Functions

func New

func New(protoType string) (*any.Any, error)

New returns a protobuf message of the specified type that describes a private key. A ProtoBuilder must have been registered for this type using RegisterType() first.

func RegisterType

func RegisterType(protoType string, builder ProtoBuilder)

RegisterType registers a func that can create protobuf messages which describe a private key.

func RegisteredTypes

func RegisteredTypes() []string

RegisteredTypes returns a list of protobuf message types that have been registered using RegisterType().

Types

type ProtoBuilder

type ProtoBuilder func() (proto.Message, error)

ProtoBuilder creates a protobuf message that describes a private key. It may use flags to obtain the required information, e.g. file paths.

Source Files

registry.go

Version
v1.3.7
Published
Jan 16, 2020
Platform
js/wasm
Imports
5 packages
Last checked
3 hours ago

Tools for package owners.