RAILGUN Reloaded
    Preparing search index...

    Orchestration helper for the two-round Baby FROST signing flow.

    Holds the durable signing identity (local signer shares, group public key, threshold) and manages one or more SigningSessions. Each session is an isolated round, so a single manager can drive concurrent signings of distinct messages. The flat round methods (round1/sign/finalize/...) operate on a lazily-created 'default' session for single-session callers.

    Index
    • get partialsById(): Map<number, bigint>

      Partial signatures collected on the default session.

      Returns Map<number, bigint>

      The default session's partials map.

    • Creates a signing manager bound to a finalized group public key.

      Parameters

      • publicKey: Point<bigint>

        Finalized group public key.

      • threshold: number

        Threshold required for aggregation.

      Returns FROSTSigningManager

    • Returns true when one of the local signers owns the provided identifier.

      Parameters

      • identifier: bigint

        Participant identifier.

      Returns boolean

      true when the signer is local.

    • Reports whether a session exists.

      Parameters

      • id: string = DEFAULT_SESSION

        Session identifier (defaults to 'default').

      Returns boolean

      true when the session exists.

    • Discards a session and its round state.

      Parameters

      • id: string = DEFAULT_SESSION

        Session identifier (defaults to 'default').

      Returns void

    • Serializes the manager to a snapshot that carries no live nonces, and is therefore sound to restore any number of times.

      Sessions that have already committed (run round1) hold local nonces, so they are dropped; their ids are listed in omittedSessions. To resume a committed session you need FROSTSigningManager#toMidRoundJSON, which carries a single-use hazard.

      The snapshot still contains signers[].skShare — long-term key material — so persist it only to trusted storage.

      Returns SigningManagerSnapshot

      A versioned, hex-encoded safe snapshot suitable for JSON.stringify.

    • Serializes the manager including the local nonces of committed sessions, so a signing already past round 1 can be resumed and still produce partials that match the commitments peers hold.

      This snapshot is single use. The nonces it carries must sign at most one message. Restoring the same payload more than once and signing different messages reuses (hidingNonce, bindingNonce) across distinct challenges; enough such partials form a solvable linear system in the signer's secret share. Restoring twice is a key-compromise event even inside trusted storage, so the caller must mark the stored payload consumed before signing from it, and never fan it out to more than one process.

      Returns SigningManagerSnapshot

      A versioned, hex-encoded mid-round snapshot. Treat as single use.

    • Adds a peer commitment to the default session.

      Parameters

      • commitment: Commitment

        Remote participant commitment.

      Returns void

      The default session's result for the added commitment.

    • Produces local signature shares on the default session.

      Parameters

      • message: bigint

        Message scalar to sign.

      Returns { identifier: number; partial: any }[]

      Signature shares for all local signers.

    • Aggregates the default session into a final signature.

      Parameters

      • message: bigint

        Message that was signed.

      Returns { R8: Point<bigint>; S: any }

      The aggregate signature.

    • Participant identifiers implied by the default session's commitment list.

      Returns number[]

      The expected participant identifiers.

    • Identifiers still missing a partial on the default session.

      Returns number[]

      The missing participant identifiers.

    • Whether the default session has every expected partial.

      Returns boolean

      true when the round can finalize.

    • Resets the default session so a new round can start.

      Returns void

      The default session's reset result.

    frost: BabyFROST

    FROST primitive used for commit, sign, and aggregate operations.

    signers: SignerShare[] = []

    Local signer shares owned by this manager instance.

    groupPublicKey: Point<bigint>

    Finalized group public key for the active signing set.

    threshold: number

    Threshold required to aggregate a final signature.