VC Registration
A credential issuer can register a new VC with vc_register
operation. In the request message, the credential issuer must specify the current public key ("current_key"
) in a valid key series and the SHA-256 hash of the next public key ("next_key_hash"
). The request message is then encoded in Base64 and signed by the current private key. Once the VC is registered, the server will respond with the VC's unique CID.
Once the credential issuer obtains a CID from the IDIN server, the issuer can then generate and send a VC with that CID to the credential holder.
The private key that is used to sign a vc_register
request must be the same key that is used to sign the VC. This ensures the VC can be verified with "current_key"
that is recorded in the IDIN blockchain.
vc_register
POST
https://test-network.finema.co/vc
Request Body
operation
string
The method's name that is "vc_register".
did_address
string
The DID address.
current_key
string
The current public key in the series. It is used to verify the request's signature.
next_key_hash
string
The SHA-256 hash of the next public key in the series.
nonce
number
The request nonce.
Example Message and Request
The above message can then be encoded in Base64 and signed with ECDSA to obtain the following HTTP request
Last updated