reshare

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteReshare

func CompleteReshare(cfg *config.UnifiedConfig) (*config.UnifiedConfig, error)

CompleteReshare finalizes the resharing process

func MigrateECDSAExtensions

func MigrateECDSAExtensions(
	oldExtensions *config.ECDSAExtensions,
	newPartyID party.ID,
	newParties []party.ID,
) (*config.ECDSAExtensions, error)

MigrateECDSAExtensions handles the migration of ECDSA-specific data during resharing

func Reshare

func Reshare(cfg *config.UnifiedConfig, newParties []party.ID, newThreshold int) protocol.StartFunc

Reshare initiates a dynamic resharing protocol for the unified MPC-LSS This works for both ECDSA and EdDSA configurations

func TransferShare

func TransferShare(
	oldShare curve.Scalar,
	wShare curve.Scalar,
	qShare curve.Scalar,
	recipientID party.ID,
	newThreshold int,
	group curve.Curve,
) (curve.Scalar, error)

TransferShare performs the core share transfer during resharing This is signature-agnostic and works for both ECDSA and EdDSA

func VerifyResharedConfig

func VerifyResharedConfig(oldConfig, newConfig *config.UnifiedConfig) error

VerifyResharedConfig validates that a reshared configuration is correct

Types

type ReshareResult

type ReshareResult struct {
	// NewConfig is the updated configuration after resharing
	NewConfig *config.UnifiedConfig

	// OldGeneration is the generation number before resharing
	OldGeneration uint64

	// Success indicates if resharing completed successfully
	Success bool
}

ReshareResult contains the output of a successful resharing

Jump to

Keyboard shortcuts

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