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

    Class GroupSpec

    A specification for a group of shares within an SSKR split.

    Index

    Methods

    • Creates a new GroupSpec instance with the given member threshold and count.

      Parameters

      • memberThreshold: number

        The minimum number of member shares required to reconstruct the secret within the group.

      • memberCount: number

        The total number of member shares in the group.

      Returns GroupSpec

      A new GroupSpec instance.

      SSKRError if the member count is zero, if the member count is greater than the maximum share count, or if the member threshold is greater than the member count.

    • Returns the member share threshold for this group.

      Returns number

    • Returns the number of member shares in this group.

      Returns number

    • Parses a group specification from a string. Format: "M-of-N" where M is the threshold and N is the count.

      Parameters

      • s: string

      Returns GroupSpec

    • Returns a string representation of the group spec.

      Returns string