Closed shentschel closed 11 months ago
I am currently working on the /transaction/initialize
endpoint and the user will be able to send the following struct
type InitTransactionDto struct {
UserId string `json:"user_id" validate:"required"`
TransactionId string `json:"transaction_id" validate:"required"`
TransactionData interface{} `json:"transaction_data" validate:"required"`
}
@FreddyDevelop @FlxMgdnz: Would you only hash the TransactionData or a combination of TransactionId and TransactionData?
I would hah the combination of the TransactionId and TransactionId because the TransactionId should be a unique identifier from the relying party. There might be situations where the TransactionData is not unique and this way it is stronger binding of a transaction to an assertion.
Make it possible to use the webauthn api for storing and authorization of transactional data.
To Dos:
/transaction/initialize
and/transaction/finalize