-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Bip47 lelantus #1013
Bip47 lelantus #1013
Conversation
1670b98
to
282d10b
Compare
This pull request introduces 13 alerts when merging c50f119 into 677b54c - view on LGTM.com new alerts:
|
This pull request introduces 13 alerts when merging 47626f6 into 677b54c - view on LGTM.com new alerts:
|
This pull request introduces 13 alerts when merging ecfcbf4 into 677b54c - view on LGTM.com new alerts:
|
This pull request introduces 12 alerts when merging cc72c32 into 677b54c - view on LGTM.com new alerts:
|
This pull request introduces 12 alerts when merging 952262a into 677b54c - view on LGTM.com new alerts:
|
This pull request introduces 12 alerts and fixes 3 when merging 2bf8657 into 677b54c - view on LGTM.com new alerts:
fixed alerts:
|
2bf8657
to
698fb7c
Compare
This pull request introduces 12 alerts and fixes 3 when merging 698fb7c into 677b54c - view on LGTM.com new alerts:
fixed alerts:
|
src/wallet/wallet.cpp
Outdated
} | ||
} | ||
|
||
void SendNotificationTxLelantus(CWallet * const pwallet, bip47::CPaymentChannel const & pchannel, CWalletTx& wtxNew) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely should be a method of CWallet
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should not. If speak about PrepareAndSendNotificationTx
, then maybe it should. But what for, what would be the benefits of this? It's a utility function as it just uses ::CWallet services to send a very special transaction.
src/wallet/wallet.cpp
Outdated
@@ -6936,3 +7337,137 @@ bool CMerkleTx::AcceptToMemoryPool(const CAmount &nAbsurdFee, CValidationState & | |||
|
|||
bool CompSigmaHeight(const CSigmaEntry &a, const CSigmaEntry &b) { return a.nHeight < b.nHeight; } | |||
bool CompSigmaID(const CSigmaEntry &a, const CSigmaEntry &b) { return a.id < b.id; } | |||
|
|||
namespace { | |||
//I am leaving this proc in place as it may be useful for further urgent cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the original urgent case? Comment doesn't look good. Please consider removing the function altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is Lelantus disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll save it into some other repo
This pull request introduces 11 alerts when merging cc5d57f into 677b54c - view on LGTM.com new alerts:
|
PR intention
An implementation of RAP (bip47) payment codes.
Code changes brief
The secret point is calculated using Lelantus private/public keys. This required a minor change into the Lelantus tx creation. Other that this, there is no significant changes to the existing code and the BIP47 code is done as an add-on.