Skip to content
HALOWERK

Onchain Identity and Accounts

keyindex cuckoo augmenting placement

Return a maximum two-choice key placement and unplaced keys using augmenting paths over supplied candidate slots.

POST https://ident.halowerk.com/v1/keyindex-cuckoo-augmenting-placement

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
keysarrayYes
capacityintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "keys": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "first": {
            "type": "integer",
            "minimum": 0,
            "maximum": 199
          },
          "second": {
            "type": "integer",
            "minimum": 0,
            "maximum": 199
          }
        },
        "required": [
          "key",
          "first",
          "second"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 0
    },
    "capacity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "keys",
    "capacity"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "keys": [
    {
      "key": "a",
      "first": 0,
      "second": 1
    },
    {
      "key": "b",
      "first": 0,
      "second": 2
    },
    {
      "key": "c",
      "first": 1,
      "second": 2
    }
  ],
  "capacity": 3
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’