Documentation
¶
Index ¶
- Variables
- func FormatPublicEd25519(pub *crypto.PublicKey) string
- func ParsePrivateKeyFile(ascii []byte) (crypto.PublicKey, *crypto.Ed25519Signer, error)
- func ParsePublicEd25519(asciiKey string) (crypto.PublicKey, error)
- func SignedData(namespace string, msg []byte) []byte
- func WritePrivateKeyFile(w io.Writer, signer *crypto.Ed25519Signer) error
- type Connection
- type Signer
Constants ¶
This section is empty.
Variables ¶
View Source
var NoPEMError = errors.New("not a PEM file")
Functions ¶
func FormatPublicEd25519 ¶ added in v0.1.11
func ParsePrivateKeyFile ¶ added in v0.1.16
func ParsePublicEd25519 ¶ added in v0.1.10
func SignedData ¶
Deprecated; only for backwards compatibility in SignedTreeHead.VerifyVersion0.
func WritePrivateKeyFile ¶ added in v0.1.16
func WritePrivateKeyFile(w io.Writer, signer *crypto.Ed25519Signer) error
Types ¶
type Connection ¶ added in v0.1.10
type Connection struct {
// contains filtered or unexported fields
}
func Connect ¶ added in v0.1.10
func Connect() (*Connection, error)
func ConnectTo ¶ added in v0.1.10
func ConnectTo(sockName string) (*Connection, error)
func (Connection) NewSigner ¶ added in v0.1.10
func (c Connection) NewSigner(publicKey *crypto.PublicKey) (*Signer, error)
func (Connection) SignEd25519 ¶ added in v0.1.10
Click to show internal directories.
Click to hide internal directories.