Class MultiEd25519Signature

Hierarchy

  • MultiEd25519Signature

Constructors

Properties

bitmap: Uint8Array

4 bytes, at most 32 signatures are supported. If Nth bit value is 1, the Nth signature should be provided in signatures. Bits are read from left to right

A list of ed25519 signatures

BITMAP_LEN: number = 4

Methods

  • Converts a MultiEd25519Signature into bytes with bytes = s1_bytes | ... | sn_bytes | bitmap

    Returns Uint8Array

  • Helper method to create a bitmap out of the specified bit positions

    Example

    Here's an example of valid bits

    [0, 2, 31]
    

    [0, 2, 31] means the 1st, 3rd and 32nd bits should be set in the bitmap. The result bitmap should be 0b1010000000000000000000000000001

    Returns

    bitmap that is 32bit long

    Parameters

    • bits: Seq<number>

      The bitmap positions that should be set. A position starts at index 0. Valid position should range between 0 and 31.

    Returns Uint8Array

Generated using TypeDoc