Skip to main content

Function: actorTokenKid()

actorTokenKid(signer, version): string

Defined in: packages/contracts/src/actor-token.ts:69

Builds the kid of one signer's key at one version.

Parameters​

signer​

ActorTokenSigner

The gateway deployment that holds the signing key.

version​

number

The key's version, from 1.

Returns​

string

For example gw-admin-actor:v1.

Throws​

The version is not an integer from 1 to 9999, which the pattern would refuse anyway; failing here names the cause at the signer, not the receiver.