From 0af5ec6b20380f6073d8e3bf7589e37cbc76146b Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Mon, 16 Oct 2023 13:54:26 -0700 Subject: [PATCH] more doc --- sphinx-ffi/onion.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sphinx-ffi/onion.md b/sphinx-ffi/onion.md index f62fb9f..9a90734 100644 --- a/sphinx-ffi/onion.md +++ b/sphinx-ffi/onion.md @@ -1,3 +1,11 @@ +### sign a timestamp (to connect to MQTT) + +**`sign_msg(seed: String, time: String)`** + +- seed: 32-byte hex +- time: 13-digit timestamp (milliseconds) +- returns hex-encoded signature + ### onion messages **`create_onion(seed: String, time: String, hops: String, payload: Bytes)`**