انتقل إلى المحتوى الرئيسي

Function: commandEnvelopeKid()

commandEnvelopeKid(signer, version): string

Defined in: packages/contracts/src/commands.ts:217

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

Parameters​

signer​

CommandEnvelopeSigner

The deployable that holds the signing key.

version​

number

The key's version, from 1.

Returns​

string

For example provisioning-agent-command: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 at the agent.