📃
OmniOne Developer Site
  • Introduction
  • Manager console guide
    • To begin with...
      • Wallet Settings
      • Select an Account
      • The Issuer/SP account creation
      • Issue access token for the OmniOne Agent
    • Issuer Console
      • Claim
      • VC Type
      • VC Format
      • Issue the VC Information
      • My request list
    • SP Console
      • Service List
      • Token Transaction History
      • My service request
  • Server system construction
    • To begin with...
      • Server Wallet creation and Key settings
      • Collect the Issuer and SP's DID
      • application.properties settings
    • Server default environment configuration per IDE
      • Spring Tool Suite 4
      • IntelliJ IDEA
    • Building the Issuer system
      • Issuer server guide(JAVA)
    • Building the SP system
      • SP server guide (JAVA)
  • Checking Blockchain data
    • Check Agent API
      • bp
      • Committee
      • DID
      • executor
      • key
      • pDID
      • player
      • policy
      • txinfo
      • txissue
      • vc
      • version
      • response codes
  • SDK instruction guide
    • Core SDK Guide
      • Java Wallet
        • IWKeyManager
        • IWDIDManager
        • IWRecoveryManager
        • ZkpException
        • IWException
      • iOS Wallet
        • IWKeyManager
        • IWDidManager
        • IWClaimManager
        • IWRecoveryManager
        • IWErrorManager
        • Enum
    • Server SDK Guide
      • Java
        • ServerInfo
        • IssuerApi
        • SpApi
        • VcResult
        • VcInitParam
        • VCRegParam
        • VcVerifyParam
        • SpProfileParam
    • Omni App Link SDK
      • Server
      • Android
      • IOS
  • Node creation
    • Full Node creation
      • Full Node by using Docker
        • Docker Installation
        • Building Full Node
        • Full Node settings
      • Installation type Full Node
        • Full Node installation
    • BP Node creation
      • BP Node by using Docker
        • Docker Installation
        • Building BP Node
        • BP Node settings
          • keosd/BP Node executing simultaneously
      • Installation type BP
        • Node Installation
        • Executing Node
        • Node settings
        • BP Vote
Powered by GitBook
On this page
  • createPrivateDid
  • getPrivateDid
  • updatePrivateDid
  • deletePrivateDid

Was this helpful?

  1. Checking Blockchain data
  2. Check Agent API

pDID

Agent Server REST API

createPrivateDid

POST http://dev.whitehat.co.kr/agent/v1/pdid/createPrivateDid

API that creates the private DID

Headers

Name
Type
Description

X-AGENT-API-TOKEN

string

required token for searching the Agent API(issuing console)

Request Body

Name
Type
Description

id

string

private DID to create

publicKey

string

private DID public keys to create

authentication

string

private DID authentication information to create

proof

string

private DID proof information to create

{
  "code": 200,
  "message": "Success"
}

Request Parameter example (JSON String)

{
    "didReq": "{\"authentication\":[{\"id\":\"did:omn:agent1:abcde#aa\",\"publicKeyBase58\":\"be1XaL2STpiLYGDSKGLqMY3eTYCkjrozFMwWR1XBTnEx\",\"type\":\"Secp256k1VerificationKey2018\"}],\"id\":\"did:omn:agent1:abcde\",\"proof\":{\"created\":\"2020-06-23T13:57:27\",\"creator\":\"did:omn:agent1:abcde#aa\",\"nonce\":\"Agui6mzGZL\",\"signatureValue\":\"3kzc67uHUVNXT4tP6Wz1z5RwotcSCRPRQZFF6n6R8Qd2Jt2s35FZGnkbXMSWj2cwZfohaZJGPAZHMezLeYwckzLMp\",\"type\":\"Secp256k1VerificationKey2018\"},\"publicKey\":[{\"id\":\"did:omn:agent1:abcde#aa\",\"publicKeyBase58\":\"be1XaL2STpiLYGDSKGLqMY3eTYCkjrozFMwWR1XBTnEx\",\"type\":\"Secp256k1VerificationKey2018\"}],\"updated\":\"2020-06-23T13:57:27\"}"
}

getPrivateDid

POST http://dev.whitehat.co.kr/agent/v1/pdid/getPrivateDid

API that searches Private DID

Headers

Name
Type
Description

X-AGENT-API-TOKEN

string

required token for searching the Agent API (issuing console)

Request Body

Name
Type
Description

id

string

private DID to search

{
  "code": 200,
  "message": "Success",
  "body": {
    "didDoc": {
      "id": "did:omn:agent1:8jvk2fhk8hou00g2fr5caz1xe9",
      "publicKey": [
        {
          "id": "did:omn:agent1:8jvk2fhk8hou00g2fr5caz1xe9#aa",
          "publicKeyBase58": "se2BwptFucnUBt1YHjSuC6fB8VnyjGxLBX6oXCiaBonQ",
          "type": "Secp256k1VerificationKey2018"
        }
      ],
      "authentication": [
        {
          "id": "did:omn:agent1:8jvk2fhk8hou00g2fr5caz1xe9#aa",
          "publicKeyBase58": "se2BwptFucnUBt1YHjSuC6fB8VnyjGxLBX6oXCiaBonQ",
          "type": "Secp256k1VerificationKey2018"
        }
      ],
      "updated": "2020-04-20T16:43:43"
    }
  }
}

Request Parameter example (JSON String)

{
  "didReq": {
    "id": "did:omn:agent1:8jvk2fhk8hou00g2fr5caz1xe9"
  }
}

updatePrivateDid

POST http://dev.whitehat.co.kr/agent/v1/pdid/updatePrivateDid

API that modifies private DID

Headers

Name
Type
Description

X-AGENT-API-TOKEN

string

required token for searching the Agent API

Request Body

Name
Type
Description

id

string

private DID to modify

publiccKey

string

private DID public keys to modify

authentication

string

private DID authentication information to modify

proof

string

private DID proof information to modify

{
  "code": 200,
  "message": "Success"
}

Request Parameter example (JSON String)

{
    "didReq": "{\"authentication\":[{\"id\":\"did:omn:agent1:abcde#aa\",\"publicKeyBase58\":\"be1XaL2STpiLYGDSKGLqMY3eTYCkjrozFMwWR1XBTnEx\",\"type\":\"Secp256k1VerificationKey2018\"}],\"id\":\"did:omn:agent1:abcde\",\"proof\":{\"created\":\"2020-06-23T14:00:53\",\"creator\":\"did:omn:agent1:abcde#aa\",\"nonce\":\"B7bmngimjv\",\"signatureValue\":\"3k63SNDtqtmtQe2BeQ2asSgYNDqnuMwdK1HEkwURjT8x6pb6tSMCEBbejrYn3cjEi3fMLu56KCsBCcYVRug2Y6DAn\",\"type\":\"Secp256k1VerificationKey2018\"},\"publicKey\":[{\"id\":\"did:omn:agent1:abcde#aa\",\"publicKeyBase58\":\"be1XaL2STpiLYGDSKGLqMY3eTYCkjrozFMwWR1XBTnEx\",\"type\":\"Secp256k1VerificationKey2018\"}],\"updated\":\"2020-06-23T14:00:53\"}"
}

deletePrivateDid

POST http://dev.whitehat.co.kr/agent/v1/pdid/deletePrivateDid

AP that deletes Private DID

Headers

Name
Type
Description

X-AGENT-API-TOKEN

string

required token for searching the Agent API (issuing console)

Request Body

Name
Type
Description

id

string

private DID to delete

type

string

private DID type to delete

payload

string

private DID payload to delete

proof

string

private DID proof information to delete

{
  "code": 200,
  "message": "Success"
}

Request Parameter example (JSON String)

{
 "didAuth": "{\"id\":\"did:omn:agent1:abcd\",\"payload\":\"omnione\",\"proof\":{\"created\":\"2020-06-23T11:30:16\",\"creator\":\"did:omn:agent1:abcd#aa\",\"nonce\":\"wpcDQCca5U\",\"signatureValue\":\"3rxLoT3mmdVgcqGz1JJyJxSGoQrnEGaEvJCmwcKD8G71rRuidi13EQtiLbuEut7f1DxquKevSf1qiHVWDoHQb48Td\",\"type\":\"Secp256k1VerificationKey2018\"},\"type\":\"default\"}"
}
PreviouskeyNextplayer

Last updated 4 years ago

Was this helpful?