Skip to main content

PrismDIDKeyUsage

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / Domain / PrismDIDKeyUsage

Variable: PrismDIDKeyUsage

const PrismDIDKeyUsage: { AUTHENTICATION_KEY: 4; CAPABILITY_DELEGATION_KEY: 7; CAPABILITY_INVOCATION_KEY: 6; ISSUING_KEY: 2; KEY_AGREEMENT_KEY: 3; MASTER_KEY: 1; REVOCATION_KEY: 5; UNKNOWN_KEY: 0; }

Defined in: packages/shared/domain/build/index.d.ts:1849

Mirrors io.iohk.atala.prism.protos.KeyUsage from the auto-generated protobuf code. Defined locally to keep the proto namespace (which contains ES #private fields) out of the DTS rollup graph — rollup-plugin-dts cannot handle #private inside namespace class declarations.

The satisfies clause below guarantees at compile time that every member matches the proto definition — if the proto enum changes, tsc will error.

Type Declaration

NameTypeDefined in
AUTHENTICATION_KEY4packages/shared/domain/build/index.d.ts:1854
CAPABILITY_DELEGATION_KEY7packages/shared/domain/build/index.d.ts:1857
CAPABILITY_INVOCATION_KEY6packages/shared/domain/build/index.d.ts:1856
ISSUING_KEY2packages/shared/domain/build/index.d.ts:1852
KEY_AGREEMENT_KEY3packages/shared/domain/build/index.d.ts:1853
MASTER_KEY1packages/shared/domain/build/index.d.ts:1851
REVOCATION_KEY5packages/shared/domain/build/index.d.ts:1855
UNKNOWN_KEY0packages/shared/domain/build/index.d.ts:1850