Skip to content

Organization: Key and signature filename syntax #6

Description

@andrewdavidwong

This is a relatively minor organizational issue, but one worth considering early on.

Currently, the filename syntax for keys and detached signatures on keys is specified as follows:

Key: <id>.key
Detached signature on a key: key.{id}.{id_of_the_signer}

In my pull request (#2), I suggest changing this to:

Key: <id>.key
Detached signature on a key: <id>.key.<id_of_the_signer>

This will result in detached signatures sorting immediately after the key they sign. An additional benefit is that it will avoid the following situation (which would probably end up happening under the current scheme):

codehash.db./witnesses/
└── keys
    ├── joanna.key
    ├── jones.key
    ├── key.joanna.jones
    ├── key.joanna.smith
    └── smith.key

In other words, all the detached signatures on keys get grouped together and lexically sorted at the letter "k," which breaks up the group of keys sorted lexically by ID if there are IDs that begin with characters before or after "k."

By contrast, under my suggested scheme, the files would sort like so:

codehash.db./witnesses/
└── keys
    ├── joanna.key
    ├── joanna.key.jones
    ├── joanna.key.smith
    ├── jones.key
    └── smith.key

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions