Skip to main content

register_payload

Function register_payload 

Source
pub fn register_payload(name: &str, pubkey: &[u8; 32], ts: u64) -> Vec<u8> ⓘ
Expand description

Compose the canonical byte payload an agent must sign as the proof-of-possession during agent.register.

Layout: b"register\0" || name || b"\0" || pubkey || b"\0" || ts_le.

The nonce (ts, unix-millis) binds the proof to a specific instant so a replayed signature from an earlier session cannot be re-used to register the same name by a different actor.