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

redeem process - add replay protection #19

Open
alexeiZamyatin opened this issue Jan 12, 2019 · 1 comment
Open

redeem process - add replay protection #19

alexeiZamyatin opened this issue Jan 12, 2019 · 1 comment

Comments

@alexeiZamyatin
Copy link
Contributor

Add replay protection to redeem protocol, to prevent a vault from re-using the same Bitcoin transaction as proof for multiple redeemRequests.

Require the following digest is included in OP_RETURN of the redeem Bitcoin transaction:

  • redeemer Eth address
  • contract address
  • redeemRequestId
@alexeiZamyatin
Copy link
Contributor Author

Requirements:

  1. generate digest in requestRedeem. Emit raw data as event + return digest from function
  2. verify digest is in OP_return in confirmRedeem function

@alexeiZamyatin alexeiZamyatin changed the title requestRedeem - replay protection redeem process - add replay protection Jan 12, 2019
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

No branches or pull requests

1 participant