Skip to content

sdk: rename serverKey → operatorPubkey #799

Description

@arkana-ai-bot

Problem

The main SDK exposes serverKey in two places that still use the old "server" terminology:

  • client.serverKey — the ArkClient property holding the operator's public key
  • ArkAddress.serverPubKey — the property on a decoded Ark address

These names are inconsistent with the direction taken in the @arkade-os/swap package (and elsewhere) where operatorPubkey is now the standard name for the operator-run server's public key.

Proposed change

Rename both to operatorPubkey:

  • client.serverKeyclient.operatorPubkey
  • ArkAddress.serverPubKeyArkAddress.operatorPubkey

A deprecation alias can be kept for one release cycle to avoid a hard breaking change for SDK consumers.

Scope

This is a main SDK change (packages/sdk/ or equivalent), not scoped to @arkade-os/swap. The swap package's cancel.test.ts uses serverKey from the SDK emulator API, and swap.test.ts reads .serverPubKey from ArkAddress — both of those will need updating once this is landed.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions