Skip to main content

add key to Digital Twin

PATCH 

/api/gemini/v1/digital-twin/key/add/:did

add key to the DID Document, supports only single key manipulation, so multiple updates increase the time

Request

Path Parameters

    did stringrequired

    the digital identifier

Body

required

    keys

    object[]

    required

  • Array [

  • kid stringrequired

    identifier of the Key, acts like an alias for the key

    kms stringrequired

    the key management system of the key

    type string

    Key algorithm

    publicKeyHex stringrequired

    public part of the key as a string in hex format

    privateKeyHex stringdeprecated

    the private part of the key, based on the security reasons will not be returned

    meta

    object

    algorithms string[]

    a lis tof supported key algorithm

  • ]

Responses

Schema

    @context

    object

    required

    anyOf

    string

    id stringrequired
    alsoKnownAs string[]

    controller

    object

    anyOf

    string

    verificationMethod

    object[]

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • service

    object[]

  • Array [

  • id stringrequired
    the identifier of the service. Required for deletion operation
    type stringrequired

    Default value: LinkedDomain

    categorization of the provided service url, if not maintained, LinkedDomain will be used.
    Only chars a-z or A-Z are allowed
    serviceEndpoint stringrequired
    the endpoint url providing additional services / information for the digital twin
    description string
    Endpoint is providing additional material information like Certificates and hazardous information
  • ]

  • publicKey

    object[]

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • authentication

    object[]

  • Array [

  • anyOf

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • ]

  • assertionMethod

    object[]

  • Array [

  • anyOf

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • ]

  • keyAgreement

    object[]

  • Array [

  • anyOf

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • ]

  • capabilityInvocation

    object[]

  • Array [

  • anyOf

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • ]

  • capabilityDelegation

    object[]

  • Array [

  • anyOf

  • Array [

  • id stringrequired
    type stringrequired
    controller stringrequired
    publicKeyBase58 string
    publicKeyBase64 string

    publicKeyJwk

    object

    alg string
    crv string
    e string
    ext boolean
    key_ops string[]
    kid string
    kty stringrequired
    n string
    use string
    x string
    y string
    publicKeyHex string
    publicKeyMultibase string
    blockchainAccountId string
    ethereumAddress string
  • ]

  • ]

Loading...