Skip to content

Connecting child documents to the correct parent documents via API using Request VC doc blocks #3270

Answered by anvabr
CyndyMo asked this question in Q&A
Discussion options

You must be logged in to vote

To link the document via API you'd need to pass into the request block ref which contains the parent document together with the value of the document, i.e. the body will look like this:
{ document: ${credentialSubject}, ref: ${parentVCdoc} }

In the created VC document's credentialSubject the will appear a ref, which would contain the credentialSubject.id from the parentVCdoc (see above), and in the case where the parentVCdoc was published in Hedera in the created VC there will also be its messageId in the relationships.

To check the correctness of relationships you could check this in the the created VC document and verify that it contains the messageID of the parent VC document.

https://…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@marko-zeroproxy
Comment options

Answer selected by anvabr
Comment options

You must be logged in to vote
2 replies
@anvabr
Comment options

@CyndyMo
Comment options

Comment options

You must be logged in to vote
5 replies
@anvabr
Comment options

@AlexIvanHoward
Comment options

@anvabr
Comment options

@AlexIvanHoward
Comment options

@anvabr
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants