Blockchain Commons Tags TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Class Spec

    A specification for an SSKR split.

    Index

    Methods

    • Creates a new Spec instance with the given group threshold and groups.

      Parameters

      • groupThreshold: number

        The minimum number of groups required to reconstruct the secret.

      • groups: GroupSpec[]

        The list of GroupSpec instances that define the groups and their members.

      Returns Spec

      A new Spec instance.

      SSKRError if the group threshold is zero, if the group threshold is greater than the number of groups, or if the number of groups is greater than the maximum share count.

    • Returns the group threshold.

      Returns number

    • Returns the number of groups.

      Returns number

    • Returns the total number of shares across all groups.

      Returns number