Skip to main content

serialize_signed_note

Function serialize_signed_note 

Source
pub fn serialize_signed_note(body: &str, signatures: &[String]) -> String
Expand description

Serialize a signed note from body text and signatures.

Args:

  • body — The note body (must end with \n).
  • signatures — Formatted signature lines from build_signature_line.

Usage:

let note = serialize_signed_note(&body, &[sig_line]);