Skip to content

Use the type system to enforce use of blinded keys.

gabi-250 requested to merge gabi-250/arti:encode-hsdesc-blinded-keys into main

Hidden services use blinded singing keys derived from the identity key to sign descriptor signing keys.

Before this patch, the hidden descriptor builder represented its blinded signing keys (blinded_id) as plain ed25519::Keypairs. This was not ideal, as there was nothing preventing the caller from accidentally initializing blinded_id with an unblinded keypair.

This introduces a new HsBlindKeypair type to represent blinded keypairs.

Signed-off-by: Gabriela Moldovan gabi@torproject.org

Merge request reports

Loading