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

Add UT Neo.Extensions #3467

Merged
merged 10 commits into from
Aug 30, 2024
Merged

Add UT Neo.Extensions #3467

merged 10 commits into from
Aug 30, 2024

Conversation

chenzhitong
Copy link
Member

No description provided.

@@ -43,6 +43,11 @@ public static BigInteger Mod(this BigInteger x, BigInteger y)

public static BigInteger ModInverse(this BigInteger a, BigInteger n)
{
Copy link
Member

Choose a reason for hiding this comment

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

Is this used inside the vm?

Copy link
Member

@AnnaShaleva AnnaShaleva Aug 23, 2024

Choose a reason for hiding this comment

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

It shouldn't, VM uses its own implementation of ModInverse for OpCode.MODPOW handling.

But this method is used for operations with ECPoint (division and addition), thus I'd check if native CryptoLib's contract operations are not affected.

@Jim8y
Copy link
Contributor

Jim8y commented Aug 27, 2024

i am adding more edge testes in this pr, please hold a while

Jim8y
Jim8y previously approved these changes Aug 27, 2024
@Jim8y Jim8y added the NGD Review This pr is an UT/Benchmark PR, NGD can review. label Aug 29, 2024
@vncoelho
Copy link
Member

Good tests, @chenzhitong, they are important for BigInteger use cases

@shargon shargon merged commit c69791f into neo-project:master Aug 30, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NGD Review This pr is an UT/Benchmark PR, NGD can review. unit tests waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants