Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payments: multi-network support #936

Merged
merged 76 commits into from
Jan 25, 2021
Merged

Payments: multi-network support #936

merged 76 commits into from
Jan 25, 2021

Conversation

Wiezzel
Copy link

@Wiezzel Wiezzel commented Jan 19, 2021

Added platform field to PaymentDetails and SchedulePayment. Supporting multiple networks invalidates the assumption that every driver supports a single payment platform. Therefore, this additional information is needed to be able to make appropriate payment.

Implemented validation of payment platforms in PaymentProcessor to secure against cross-network replay attacks (i.e. making payment on testnet and claiming it to be a mainnet payment).

@Wiezzel Wiezzel self-assigned this Jan 19, 2021
Added `platform` field to `PaymentDetails` and `SchedulePayment`.
Supporting multiple networks invalidates the assumption that every
driver supports a single payment platform. Therefore, this additional
information is needed to be able to make appropriate payment.

Implemented validation of payment platforms in PaymentProcessor to
secure against cross-network replay attacks (i.e. making payment on
testnet and claiming it to be a mainnet payment).

Signed-off-by: Adam Wierzbicki <[email protected]>
@Wiezzel Wiezzel force-pushed the payment/multi-network branch from 43edc1b to 662dcb8 Compare January 19, 2021 10:02
Wiezzel and others added 23 commits January 19, 2021 12:59
Added `platform` field to `VerifyPayment`, `GetTransactionBalance`,
and `ValidateAllocation` messages for multi-network support.

Signed-off-by: Adam Wierzbicki <[email protected]>
@Wiezzel Wiezzel marked this pull request as ready for review January 25, 2021 15:04
@Wiezzel Wiezzel requested review from a team January 25, 2021 15:04
@Wiezzel Wiezzel enabled auto-merge January 25, 2021 15:54
Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Tested all CLI Commands and invoice_flow scenario flavours

@Wiezzel Wiezzel merged commit 8d4ad34 into master Jan 25, 2021
@tworec tworec deleted the payment/multi-network branch January 25, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants