Interface EncryptedMessage<T>

A record for an encrypted message. Contains devices, a record like { deviceName: <encrypted key> } You would decrypt the encrypted key -- message.devices[my-device-name] -- with the device's encrypt key Then use the decrypted key to decrypt the payload

interface EncryptedMessage<T extends string = string> {
    devices: Record<string, string>;
    payload: T;
}

Type Parameters

  • T extends string = string

Properties

Properties

devices: Record<string, string>
payload: T