keyfile

package
v0.2.0-rc.2 Latest Latest
Warning

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

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

Documentation

Overview

Package keyfile owns the on-disk format for local signer credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

func Store(path string, keyType Type, privateKey []byte) error

Store writes a new local signer file with owner-only permissions.

Types

type Type

type Type string

Type identifies the signing algorithm encoded in a local key file.

const (
	// EDDSA identifies an Ed25519 private key.
	EDDSA Type = "eddsa"
	// ECDSA identifies a secp256k1 private key.
	ECDSA Type = "ecdsa"
)

func Load

func Load(path string) (Type, []byte, error)

Load reads one explicitly named local signer file.

func ParseType

func ParseType(raw string) (Type, error)

ParseType validates a local signer key type.

Jump to

Keyboard shortcuts

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