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)`**