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

Bip47 lelantus #1013

Merged
merged 181 commits into from
Jun 9, 2021
Merged

Bip47 lelantus #1013

merged 181 commits into from
Jun 9, 2021

Conversation

a-bezrukov
Copy link
Contributor

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.

@lgtm-com
Copy link

lgtm-com bot commented May 31, 2021

This pull request introduces 13 alerts when merging c50f119 into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Missing enum case in switch
  • 1 for Unused static function
  • 1 for No trivial switch statements

@lgtm-com
Copy link

lgtm-com bot commented Jun 1, 2021

This pull request introduces 13 alerts when merging 47626f6 into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Missing enum case in switch
  • 1 for Unused static function
  • 1 for No trivial switch statements

@lgtm-com
Copy link

lgtm-com bot commented Jun 2, 2021

This pull request introduces 13 alerts when merging ecfcbf4 into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Missing enum case in switch
  • 1 for Unused static function
  • 1 for No trivial switch statements

@lgtm-com
Copy link

lgtm-com bot commented Jun 2, 2021

This pull request introduces 12 alerts when merging cc72c32 into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Unused static function
  • 1 for No trivial switch statements

@lgtm-com
Copy link

lgtm-com bot commented Jun 2, 2021

This pull request introduces 12 alerts when merging 952262a into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Unused static function
  • 1 for No trivial switch statements

@lgtm-com
Copy link

lgtm-com bot commented Jun 8, 2021

This pull request introduces 12 alerts and fixes 3 when merging 2bf8657 into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Unused static function
  • 1 for No trivial switch statements

fixed alerts:

  • 3 for Unused static function

@lgtm-com
Copy link

lgtm-com bot commented Jun 8, 2021

This pull request introduces 12 alerts and fixes 3 when merging 698fb7c into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for Unused static function
  • 1 for No trivial switch statements

fixed alerts:

  • 3 for Unused static function

}
}

void SendNotificationTxLelantus(CWallet * const pwallet, bip47::CPaymentChannel const & pchannel, CWalletTx& wtxNew)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@@ -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.
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is Lelantus disabled.

Copy link
Contributor Author

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

@lgtm-com
Copy link

lgtm-com bot commented Jun 9, 2021

This pull request introduces 11 alerts when merging cc5d57f into 677b54c - view on LGTM.com

new alerts:

  • 4 for Overwriting attribute in super-class or sub-class
  • 2 for 'import *' may pollute namespace
  • 2 for Unused local variable
  • 1 for Commented-out code
  • 1 for Declaration hides variable
  • 1 for No trivial switch statements

@reubenyap reubenyap merged commit e2c8db6 into master Jun 9, 2021
@reubenyap reubenyap deleted the bip47_lelantus branch June 9, 2021 14:46
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.

9 participants