Skip to content

KAMT: Remove or change mapping of integers to keys #2123

@Stebalien

Description

@Stebalien

Right now we map integers to KAMT keys by encoding them with "native endian":

  1. This is non-portable, but almost always going to be little-endian.
  2. Little endian is never what we actually want. We want keys that are close to have prefixes that are close, that's how the KAMT works.

Fortunately, nobody (that I know of) is actually using this feature. We _always use byre-array keys, not integers (except in tests). So, our options here are:

  1. Switch from "native endian" to "little endian". This is the "least breaking" fix, but we don't want little endian.
  2. Switch from "native endian" to "big endian". This is the "silently breaking" fix, but it does what we want.
  3. Remove built-in support for integer keys. This is the "safely breaking" fix. This is the fix we should go with as good OSS stewards but... the real question here is, does anybody else actually care?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📌 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions