wire-signing-input
Source: crates/lvcs-net/src/wire/mod.rs.
/// The bytes `Envelope::sig` covers: the canonical CBOR array
/// `[v, kind, sender, frontier, payload]` (design §5). The daemon signs
/// them with the sender's key; [`verify`] checks them.
#[must_use]
pub fn signing_input(
version: WireVersion,
kind: &str,
sender: Sender,
frontier: Option<[u8; 32]>,
payload: &[u8],
) -> Vec<u8> {