identity

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CredentialBackendDescription

func CredentialBackendDescription() string

func CredentialsPath

func CredentialsPath(dataDir string) string

func HardwareFingerprintHash

func HardwareFingerprintHash() string

func KeyPath

func KeyPath(dataDir string) string

func LoadOrCreateKey

func LoadOrCreateKey(dataDir string) (ed25519.PrivateKey, string, error)

func SaveCredentials

func SaveCredentials(dataDir string, creds Credentials) error

Types

type Credentials

type Credentials struct {
	NodeID                  string    `json:"node_id"`
	CoordinatorURL          string    `json:"coordinator_url"`
	PublicKey               string    `json:"public_key"`
	AccessToken             string    `json:"access_token"`
	AccessTokenExpiresAt    time.Time `json:"access_token_expires_at"`
	HardwareFingerprintHash string    `json:"hardware_fingerprint_hash"`
}

func LoadCredentials

func LoadCredentials(dataDir string) (Credentials, error)

type KeyFile

type KeyFile struct {
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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