semiotic-ai / timeline-aggregation-protocol

A fast, efficient and trust-minimized unidirectional micro-payments system.
Apache License 2.0
14 stars 3 forks source link

Add gateway ID/verification key to received receipt #56

Closed ColePBryan closed 1 year ago

ColePBryan commented 1 year ago

In order to handle postponed signature check and collateral check the gateway verification key needs to be stored with the receipt.

Note: Alternatively we could switch to recoverable keys. Then there would be no need for signature check, just recover key and check if there is collateral for that key. Also the user would not need to provide the key in this case. This may impact performance in critical path though.

ColePBryan commented 1 year ago

Decided to switch to recoverable signatures. In the future we might cache gateway id results since it is used in multiple checks if that optimization is needed.