Skip to content

Rename cost_individual to cost_stored_pubkey #152

Closed

Description

@balloob

Problem

management.md gives two record types: stored-pubkey records and shared-PSK records. Three files use these two terms.

But the cost field for a stored-pubkey record is cost_individual. No other location uses "individual" as a record type.

Change

Old New
cost_individual cost_stored_pubkey
cost_shared no change

The field cost_shared already agrees with its record type. Thus change one field only.

Change two locations in management.md: the field description in Storage accounting, and the example free / cost_individual.

Do not change the record type names. The names are correct and clear, and three files use them.

Dependency

Issue #146 can make this change unnecessary. That issue removes the full Storage accounting section. Complete issue #146 first.

Compatibility

This change affects the wire protocol. There is no alias. README.md is a generated file. Generate it again after the change.


Split from #143 at the request of @maximmaxim345.

Activity

  1. arturpragacz commented on Aug 19, 2026

    @arturpragacz
    Contributor

    I don't think we should do this rename.

    There are two axes here, not one naming scheme with a mistake. The prose names (stored-pubkey / shared-PSK) describe the knowledge model: whether the client stores and checks server_id. The cost fields describe scope: one record per server vs one shared across servers. In storage accounting, scope is the axis that matters, so individual/shared fits there.

    The proposal itself hints at this: it keeps cost_shared because it "already agrees", but it only half-agrees with "shared-PSK".

    The record-type names also never appear on the wire, so there is no inconsistency there to fix, and the field description already spells out the relevant definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions