Skip to main content

Module keys

Module keys 

Source
Expand description

KeySpecifier implementations for hidden service keys.

Some of these KeySpecifiers represent time-bound keys (that are only valid as long as their time period is relevant). Time-bound keys are expired (removed) by expire_publisher_keys.

If you add a new key that is not a per-service singleton, you also need to make arrangements to delete old ones. For TP-based keys, that involves deriving HsTimePeriodKeySpecifier and adding a call to remove_if_expired! in expire_publisher_keys.

Macrosยง

derive_deftly_template_HsTimePeriodKeySpecifier ๐Ÿ”’
Implement HsTimePeriodKeySpecifier for a struct with nickname and period

Structsยง

BlindIdKeypairSpecifier
The blinded signing keypair.
BlindIdKeypairSpecifierInfoExtractor ๐Ÿ”’
BlindIdKeypairSpecifierPattern
Pattern matching some or all BlindIdKeypairSpecifier
BlindIdPublicKeySpecifier
The blinded public key.
BlindIdPublicKeySpecifierInfoExtractor ๐Ÿ”’
BlindIdPublicKeySpecifierPattern
Pattern matching some or all BlindIdPublicKeySpecifier
DescSigningKeypairSpecifier
The descriptor signing key.
DescSigningKeypairSpecifierInfoExtractor ๐Ÿ”’
DescSigningKeypairSpecifierPattern
Pattern matching some or all DescSigningKeypairSpecifier
HsIdKeypairSpecifier
The long-term identity keypair of the service.
HsIdKeypairSpecifierInfoExtractor ๐Ÿ”’
HsIdKeypairSpecifierPattern
Pattern matching some or all HsIdKeypairSpecifier
HsIdPublicKeySpecifier
The public part of the identity key of the service.
HsIdPublicKeySpecifierInfoExtractor ๐Ÿ”’
HsIdPublicKeySpecifierPattern
Pattern matching some or all HsIdPublicKeySpecifier
IptKeySpecifier ๐Ÿ”’
Specifies an intro point key
IptKeySpecifierInfoExtractor ๐Ÿ”’
IptKeySpecifierPattern ๐Ÿ”’
Pattern matching some or all IptKeySpecifier

Enumsยง

IptKeyRole ๐Ÿ”’
Denotates one of the keys, in the context of a particular HS and intro point

Traitsยง

HsTimePeriodKeySpecifier ๐Ÿ”’
Keys that are used by publisher, which relate to our HS and a TP

Functionsยง

expire_publisher_keys ๐Ÿ”’
Expire publisher keys for no-longer relevant TPs