identity

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID

func ID(public []byte) string

func NewID

func NewID() string

Types

type Identity

type Identity struct {
	Private ed25519.PrivateKey
	Public  ed25519.PublicKey
	ID      string
	// contains filtered or unexported fields
}

func Generate

func Generate() (*Identity, error)

Generate creates a connection identity without persisting a new task owner.

func Load

func Load(dir string) (*Identity, error)

func (*Identity) TLS

func (i *Identity) TLS(peerID string) *tls.Config

TLS pins the peer's enrolled public key instead of relying on DNS certificates.

Jump to

Keyboard shortcuts

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