Skip to content

Use one canonical name per PSK category (long-term PSK / pairing PSK / sentinel PSK) #141

Closed

Description

@balloob

Problem

The three PSKs are difficult to identify. This is the most complex part of the spec. Two of the three PSKs have more than one name.

connection.md already gives the category names: "(long-term, Pairing, Sentinel)". The prose does not use them.

Change

Use one name for each category. The names agree with the wire identifiers.

Current name Locations New name
Sendspin PSK 7 long-term PSK
long-term Sendspin PSK 6 long-term PSK
long-term PSK 5 no change, becomes the standard name
per-server PSK 2 long-term PSK
per-pair Sendspin PSK 1 long-term PSK
Sendspin Pairing PSK 6 pairing PSK
Pairing PSK 24 pairing PSK
Sentinel PSK 18 no change

The change affects approximately 22 locations in template.md, connection.md, messaging.md, pairing.md and management.md. The role files do not refer to a PSK.

The change does not affect the wire. The names agree with long_term_psk, pairing_psk and the constant sendspin-sentinel-psk-v1.

Alternatives that we do not recommend

Do not remove the suffix "PSK", for example "pairing key". These keys are the Noise PSK input to KKpsk2. The psk_id procedures use the term "PSK". The name "pairing key" also points to the wrong PSK.

Do not change "Sentinel" to "unpaired PSK". The term is correct, and all 18 locations use it. It also agrees with the published label constant.

Correction to make at the same time

Do not use "per-pair" as the standard name. With a shared-PSK record, one long-term PSK can authenticate more than one server.

The definition "shared between a (client, server) pair" has the same error.

Activity

  1. arturpragacz commented on Aug 18, 2026

    @arturpragacz
    Contributor

    Makes sense.

  2. moved this from Next to In Progress in Sendspin Project Boardon Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions