• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • did/src
  • getKey

Function getKey

  • getKey(did: Partial<DidDocument> & Pick<DidDocument, "authentication">, id: `#${string}`): DidKey | undefined
  • Returns a key with a given id, if associated with this DID.

    Returns

    The respective public key data or undefined.

    Parameters

    • did: Partial<DidDocument> & Pick<DidDocument, "authentication">

      The DID data.

    • id: `#${string}`

      Key id (not the full key uri).

    Returns DidKey | undefined

    • Defined in packages/did/src/DidDetails/DidDetails.ts:38

Settings

Member Visibility

Theme

Modules

  • API Documentation
    • asset-did/src
    • augment-api/src
    • chain-helpers/src
      • Blockchain
      • ErrorHandler
      • SubscriptionPromise
    • config/src
      • ConfigService
    • core/src
      • Attestation
      • BalanceUtils
      • CType
        • Schemas
      • Claim
      • Credential
      • DelegationNodeUtils
      • PublicCredential
      • Quote
    • did/src
    • messaging/src
    • sdk-js/src
    • type-definitions/src
    • types/src
      • SubscriptionPromise
    • utils/src
      • Crypto
      • DataUtils
      • JsonSchema
      • SDKErrors
      • UUID
      • jsonabc
    • vc-export/src
      • constants
      • presentation
      • vcjsSuites
        • suites
          • KiltAttestedSuite
          • KiltIntegritySuite
          • KiltSignatureSuite
      • verification
  • DidInfo
  • SigningOptions
  • Address
  • AuthorizeCallInput
  • ChainDidPublicKey
  • ChainDidPublicKeyDetails
  • CreateDocumentInput
  • DidSignatureVerificationInput
  • EncodedEncryptionKey
  • EncodedKey
  • EncodedSignature
  • EncodedVerificationKey
  • EthereumAddress
  • GetStoreTxSignCallback
  • SubstrateAddress
  • Web3Name
  • WrappingStrategy
  • DID_CONTEXTS
  • KILT_DID_CONTEXT_URL
  • W3C_DID_CONTEXT_URL
  • W3C_SECURITY_CONTEXT_URL
  • accountToChain
  • associateAccountToChainArgs
  • authorizeBatch
  • authorizeTx
  • createLightDidDocument
  • depositFromChain
  • didSignatureToChain
  • documentFromChain
  • exportToDidDocument
  • fromChain
  • generateDidAuthenticatedTx
  • getAddressByKey
  • getFullDidUri
  • getFullDidUriFromKey
  • getKey
  • getKeyRelationshipForTx
  • getKeys
  • getLinkingArguments
  • getLinkingChallenge
  • getService
  • getStoreTx
  • getWrappedChallenge
  • isDidSignature
  • isSameSubject
  • keyToResolvedKey
  • linkedInfoFromChain
  • parse
  • parseDocumentFromLightDid
  • publicKeyToChain
  • resolve
  • resolveCompliant
  • resolveKey
  • resolveService
  • resolvedKeyToKey
  • resourceIdToChain
  • serviceFromChain
  • serviceToChain
  • signatureFromJson
  • signatureToJson
  • toChain
  • validateService
  • validateUri
  • verifyDidSignature