@mega-yfue/eufy-sdk / prepareKeyExchange
Function: prepareKeyExchange()
ts
function prepareKeyExchange(localKeyHex?): KeyExchangePrep;Build a key-exchange request: an ephemeral P-256 keypair whose public hex is AES-128-CBC(localKey)-encrypted, signed with the localKey-hex as UTF-8.
Parameters
localKeyHex?
string = EUFY_MEGA_LOCAL_KEY_HEX