New argument --receipt-type with options raw (default), embedded, when calling submit action to allow the download of the embedded receipt in one step without going through embed-receipt command. This mitigates unwanted side effects when embed-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 to raw to avoid any breaking surprises for those who use the cli already.
New method 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.
--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.