Represents a MessageKey.

Hierarchy

  • MessageKey

Implements

Constructors

Properties

cipherKey: Uint8Array

MessageKey cipherKey.

index: number

MessageKey index.

iv: Uint8Array

MessageKey iv.

macKey: Uint8Array

MessageKey macKey.

Methods

  • Converts this MessageKey to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Encodes the specified MessageKey message, length delimited. Does not implicitly verify messages.

    Parameters

    Returns Writer

    Writer

  • Creates a plain object from a MessageKey message. Also converts values to other types if specified.

    Parameters

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a MessageKey message.

    Parameters

    • message: {
          [k: string]: any;
      }

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc