📃
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
  • addsymmetrickey
  • getsymmetrickey
  • getauthtoken

Was this helpful?

  1. Checking Blockchain data
  2. Check Agent API

key

Agent Server REST API

addsymmetrickey

POST http://dev.whitehat.co.kr/agent/v1/key/addsymmetrickey

API that searches the symmetric key

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

id of the symmetric key

key

string

symmetric key

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

Request Parameter example (JSON)

{
  "id": "5521EB5EF1402BE18D13C2054B606CC81",
  "key": "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
}

getsymmetrickey

POST http://dev.whitehat.co.kr/agent/v1/key/getsymmetrickey

API that searches the symmetric key

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

symmetric key to search

issuerDid

string

Issuer's DID who issued the VC

serviceCode

string

SP's service code

spDid

string

SP's DID who is requesting for the VC verification

token

string

Issued token with the getauthtoken API

userDid

string

Targeted user DID the VC verification

vcDefCode

string

Definition code for the VC verification

cost

string

VC verification cost

{
  "code": 200,
  "message": "Success",
  "body": {
    "key": "a317c1afb43c49e01aba"
  }
}

Request Parameter example (JSON)

{
    "id":"oQaQjAt9mRExxao5Gh1HNnUhcKepkWbVTXtjjv1fV1M",
    "issuerDid":"dev.iss2",
    "serviceCode":"studentsvc",
    "spDid":"did:omn:dev.sp2",
    "token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJkaWQ6b21uOmRldi5zcDIiLCJpYXQiOjE1OTE5MzY2NzgsImV4cCI6MTU5NDUyODY3OH0.Yj765xyUXUdFU3ZZqSTNEPYLoT3svRlQyVUFoU6BGoo",
    "userDid":"5cmgo5msmu5d",
    "vcDefCode":"studentdef",
    "cost":"1"
}

getauthtoken

POST http://dev.whitehat.co.kr/agent/v1/key/getauthtoken

API that issues token with the SP proof to search the symmetric key

Headers

Name
Type
Description

string

required token for searching the Agent API (issuing console)

Request Body

Name
Type
Description

id

string

SP's DID

proof

string

SP's Proof information

type

string

Proof type information

Request Parameter example (JSON)

{
  "id": "did:omn:dev.sp2",
  "proof": {
    "created": "2020-06-16T09:38:35",
    "creator": "did:omn:dev.sp2#key1",
    "nonce": "6Ti2owGWpiJjun",
    "signatureValue": "3k9S2XZcNQBKfHJaKvBGvf7JET85EF8VDkUidvm4aR8Z27iCTcyQuvrD6QjRZvTsVh9w7CSoBqpDs5BTPT4PMJGzq",
    "type": "Secp256k1VerificationKey2018"
  },
  "type": "default"
}
PreviousexecutorNextpDID

Last updated 4 years ago

Was this helpful?