New cli argument allowing to specify receipt type to get after submission #212
+289
−134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
--receipt-type
with optionsraw
(default),embedded
, when callingsubmit
action to allow the download of the embedded receipt in one step without going throughembed-receipt
command. This mitigates unwanted side effects whenembed-receipt
logic differs from the server logic; also, this will yield better user experience without the need to explain how to embed receipt in a separate step. It defaults toraw
to avoid any breaking surprises for those who use the cli already.get_last_embedded_receipt_from_cose
which allows extracting the last receipt from a cose header. Used in receipt verification step when only signature with embedded receipt is provided.