frost

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package frost declares the M-Chain FROST protocol surface.

FROST is a 2-round Schnorr threshold scheme over Ed25519. This package is interface-only; the implementation lives in chains/mchain/protocol/frost/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	// Round1 emits the participant's nonce commitments (D_i, E_i).
	Round1(ctx context.Context, ceremony types.CeremonyID) ([]byte, error)
	// Round2 emits the signature share z_i.
	Round2(ctx context.Context, ceremony types.CeremonyID, round1 [][]byte) ([]byte, error)
	// Finalize aggregates {z_i} into the single Ed25519 (R, z).
	Finalize(ctx context.Context, ceremony types.CeremonyID, round2 [][]byte) (types.Proof, error)
}

Driver runs FROST on a selected participant's behalf.

type Verifier

type Verifier interface {
	VerifyShare(subject [32]byte, share types.Share, payload []byte) error
	VerifyFinal(subject [32]byte, proof types.Proof) error
}

Verifier validates FROST share payloads. Registered as the LaneMChainFROST verifier in the M-Chain LaneRegistry.

Jump to

Keyboard shortcuts

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