-
Notifications
You must be signed in to change notification settings - Fork 21
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
Adding shared secret to output txo #926
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #926 +/- ##
==========================================
- Coverage 60.12% 54.83% -5.30%
==========================================
Files 88 116 +28
Lines 12356 14902 +2546
Branches 2010 2586 +576
==========================================
+ Hits 7429 8171 +742
- Misses 3238 4818 +1580
- Partials 1689 1913 +224
☔ View full report in Codecov by Sentry. |
Is there a reason this needs to be stored in the database? |
I should have added that this is necessary for a txo that you don't own, which can be created with either the txo_private_key (at the time of generating the txo) + recipients view public key (in the public address of the recipient) OR the txo_public_key (available on the txo itself) + recipients view private key (which requires the private account keys). So as far as I can tell, one cannot derive the shared secret after it's created if it's not going to an owned account. |
for reference (including just for clarity in case I'm missing something) |
Gotcha, yeah, I missed that this is for TxOuts you are sending. |
😅 oh thank goodness, for a second I thought I was going crazy, hahah. Thanks so much! |
In this PR
An optional (for backwards compatibility with v1 json API) shared_secret field has been added to the service model for OutputTxo's. This enables us to re-decrypt the txo from the ledger, including its memo, at a future time when deemed necessary.
This will directly support the T3 integration by allowing authenticated sender memos of sent txos to be recorded
Test Plan
Unit tests
Future Work
Adjusting upstream PRs to utilize the new shared_secret information if available