Function tor_hsservice::publish::descriptor::build_sign

source ยท
pub(super) fn build_sign<Rng: RngCore + CryptoRng>(
    keymgr: &Arc<KeyMgr>,
    config: &Arc<OnionServiceConfig>,
    ipt_set: &IptSet,
    period: TimePeriod,
    revision_counter: RevisionCounter,
    rng: &mut Rng,
    now: SystemTime
) -> Result<VersionedDescriptor, FatalError>
Expand description

Build the descriptor.

The now argument is used for computing the expiry of the intro_{auth, enc}_key_cert certificates included in the descriptor. The expiry will be set to 54 hours from now.

Note: blind_id_kp is the blinded hidden service signing keypair used to sign descriptor signing keys (KP_hs_blind_id, KS_hs_blind_id).