pub fn sign(r: &Record, key: &NodeKey) -> Result<Record, RecordError>Expand description
Signs r with key, as macula_record’s sign/2 does. Refused, in
macula’s order: a key whose purpose does not fit the type; a lifetime that
runs backwards or past its type’s maximum; a payload that names a signer
other than the key; a tbs or payload a verifier would refuse; and a record
over 256 KiB.