autounlock

package
v0.7.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package autounlock defines wallet-password values and verified transition results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outcome

type Outcome string

Outcome is the classified end state of an auto-unlock change. Helper transport success means the root side finished observing and classifying the node; the outcome says whether the requested setting was applied, safely rolled back, or needs operator repair. Keeping these states structured prevents the TUI from parsing privileged error text.

const (
	Enabled              Outcome = "enabled"
	Disabled             Outcome = "disabled"
	VerificationFailed   Outcome = "verification_failed"
	VerificationTimedOut Outcome = "verification_timed_out"
	StillEnabled         Outcome = "still_enabled"
	RepairRequired       Outcome = "repair_required"
)

type Password

type Password struct {
	// contains filtered or unexported fields
}

Password contains an exact wallet secret. Its zero value is invalid. This is independent of the operator login-password policy.

func NewPassword

func NewPassword(text string) (Password, error)

NewPassword validates the existing single-line, 512-byte helper contract. LND remains responsible for checking the password against the wallet.

func (Password) GoString

func (Password) GoString() string

func (Password) String

func (Password) String() string

func (Password) Text

func (p Password) Text() string

Text exposes the secret only for local IPC and protected password publication.

type Result

type Result struct {
	Outcome    Outcome `json:"outcome"`
	FailedStep string  `json:"failed_step,omitempty"`
	Detail     string  `json:"detail,omitempty"`
}

Result carries no credential material. FailedStep is a bounded, operator-facing stage name for logs and the repair-required screen; Detail is used only for a safely classified retry state.

Jump to

Keyboard shortcuts

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