Function derKeys

  • Deserializes an array of keys from the specified serialized format.

    Returns

    The deserialized keys.

    Remarks

    'keysSer' is a encoded array of keys. Each elements are encoded as follows:

    |---------------|-----------|---------------|-----------------------------------------|
    | Field         | Type      | Size in Bytes | Description                             |
    |---------------|-----------|---------------|-----------------------------------------|
    | L             | u32       | 4             | Total number of keys in the sequence.   |
    | Key1_L        | u8        | 1             | Length of the Key number 1.             |
    | Key1          | u8[Key1_L]| Variable      | The Key number 1.                       |
    | Key2_L        | u8        | 1             | Length of the Key number 2.             |
    | Key2          | u8[Key2_L]| Variable      | The Key number 2.                       |
    | ...           |           |               | Data for additional keys (if any).      |
    |---------------|-----------|---------------|-----------------------------------------|
    

    Then it returns an array of keys:

    keys = [Key1, Key2, ...]
    

    Parameters

    • keysSer: StaticArray<number>

      The serialized keys.

    Returns StaticArray<u8>[]

Generated using TypeDoc