What is the difference between createOffer() and offerCredential() #1248
-
Hi, I am curious about how can I use createOffer(). I was trying to offer credential and give possibility to multiple holder to accept, I mean when you use offerCredential() then connecetionId there is as required field, but it seems that it dircetly offers to specified Holder, but my idea is to createOffer() and wait till some of the Holders come up. As a reference I've been looking for Trinsic and there Holder, as mobile app, has abbility accept or decline after QR is scanned and it looks for me that connection have been built in the moment when QR is scanned, but I still cannot reach that point. It seemes I missed something in documentation about implementation such thing, so I`d appreciate if you provide docs to read or explanation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
When you create an offer it is not tied to a specific connection. You can then use However, AFJ doesn't support using the same offer multiple times. The offer contains a nonce which shouldn't be reused I think ("In cryptography, a nonce is an arbitrary number that can be used just once in a cryptographic communication"). |
Beta Was this translation helpful? Give feedback.
When you create an offer it is not tied to a specific connection. You can then use
agent.oob.createLegacyConnectionlessInvitation
oragent.oob.createInvitation
to include the message and send it out of band.However, AFJ doesn't support using the same offer multiple times. The offer contains a nonce which shouldn't be reused I think ("In cryptography, a nonce is an arbitrary number that can be used just once in a cryptographic communication").