Skip to main content

sign_update_record

Function sign_update_record 

Source
pub fn sign_update_record(
    subject_cid512: String,
    epoch: u64,
    prev_record_digest: [u8; 64],
    new_capsule_body: CapsuleBody,
    expires_at: String,
    ed_sk: &SigningKey,
    pq_sk: &MlDsaSigningKey,
) -> Result<UpdateRecord>
Expand description

Sign an update-record’s content with the authorizing hybrid keypair, producing a fully-signed UpdateRecord.

The signature covers everything except the signatures field. Which key is authorized to sign a rotation (the pre-rotation subject key) is the rotation-chain gate’s concern (#884); this function only mints the pinned-Hybrid, context-bound signature over the supplied content.