docs/generated/contracts.mdgenerated from code
Reference · 1 min read
wire-signing-input
Contracts: wire-signing-input.
Read as
Source: crates/lvcs-net/src/wire/mod.rs.
1/// The bytes `Envelope::sig` covers: the canonical CBOR array2/// `[v, kind, sender, frontier, payload]` (discussion:owner/107). The daemon signs3/// them with the sender's key; [`verify`] checks them.4#[must_use]5pub fn signing_input(6 version: WireVersion,7 kind: &str,8 sender: Sender,9 frontier: Option<[u8; 32]>,10 payload: &[u8],11) -> Vec<u8> {