rddl-network / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
1 stars 2 forks source link

ChallengeResponse Command #1

Closed eckelj closed 1 year ago

eckelj commented 1 year ago

The ChallengeResponse Command is to be integrated as the CmndChallengeResponse() function into tasmota/tasmota_support/tasmota_support.ino

A definition: D_CMND_CHALLENGERESPONSE needs to be added to tasmota/include/i18n.h and is to be referenced at kTasmotaCommands

The reference to the function is to be added to PROGMEM variable.

The input the command (the first parameter) is expected to be a 32-byte digest as a hex string. This is to be converted to a 32-byte digest via fromHexString.

The response is a JSON object { "ChallengeResponse": { "LiquidSig": "the hex- string of the signature of the liquid derivation key", "PlanetmintSig": "the hex-string of the signature of the planetmint derivation key" } }