Skip to content

What is the difference between createOffer() and offerCredential() #1248

Answered by TimoGlastra
oadamovskyi asked this question in Q&A
Discussion options

You must be logged in to vote

When you create an offer it is not tied to a specific connection. You can then use agent.oob.createLegacyConnectionlessInvitation or agent.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").

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@oadamovskyi
Comment options

@TimoGlastra
Comment options

@TimoGlastra
Comment options

@oadamovskyi
Comment options

@TimoGlastra
Comment options

Answer selected by oadamovskyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants