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

    Class SSKRShareCbor

    SSKRShareCbor - CBOR/UR wrapper for an SSKR share.

    An SSKR share is a binary encoding of:

    • Identifier (2 bytes)
    • Group metadata (1 byte): group_threshold-1 (4 bits) + group_count-1 (4 bits)
    • Member metadata (1 byte): group_index (4 bits) + member_threshold-1 (4 bits)
    • Member index (1 byte): reserved (4 bits, must be 0) + member_index (4 bits)
    • Share value (variable length)

    Implements

    Index

    Methods

    • Returns the group threshold (minimum number of groups needed).

      Returns number

    • Returns this share's member index within its group (0-based).

      Returns number

    • Returns the share value (the actual secret share data).

      Returns Uint8Array

    • Returns the CBOR tags associated with SSKRShare. Includes both current tag (40309) and legacy tag (309) for compatibility.

      Returns Tag[]

    • Returns the untagged CBOR encoding.

      Returns Cbor

    • Returns the tagged CBOR encoding.

      Returns Cbor

    • Returns the tagged value in CBOR binary representation.

      Returns Uint8Array

    • Creates an SSKRShareCbor by decoding it from tagged CBOR. Accepts both tag 40309 and legacy tag 309.

      Parameters

      • cborValue: Cbor

      Returns SSKRShareCbor