app

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package app bootstraps the MPC node CLI and process lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchMPCNode

func LaunchMPCNode(configPath, logLevel string, console bool, logDir, keysDirFlag string) (source string, stop func(), err error)

LaunchMPCNode loads config, initializes logging/keystore, and connects to the broker. stop closes the broker WebSocket client; callers that outlive a single process (mobile) must keep it.

func LaunchMPCNodeForTest

func LaunchMPCNodeForTest(configPath string)

LaunchMPCNodeForTest starts a node for integration tests (info log, cwd log dir).

func MigrateShardKeysDir

func MigrateShardKeysDir(configPath, keysDirFlag string) error

MigrateShardKeysDir encrypts plaintext shards under keysdir and exits.

func Run

func Run()

Run parses CLI flags and starts the MPC node (or genkey / migrate-keys subcommands).

func RunGenKey

func RunGenKey(requireEnc bool, outDir string) (*crypto.Plan2ProvisionResult, error)

RunGenKey generates a Plan2 ML-DSA key pair for node provisioning.

Types

This section is empty.

Jump to

Keyboard shortcuts

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