Closed lealobanov closed 3 months ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The updates add custom logging and expand cryptographic functionalities within the SDK for Java and Kotlin applications. This involves integrating SLF4J and Logback, adding new cryptographic algorithms, and including comprehensive tests for these features. Improvements to logging include the introduction of a custom logger through SdkConfig
and an example provided in the README.
File/Directory | Summary |
---|---|
README.md |
Added section on integrating custom logger |
build.gradle.kts |
Added slf4j-api and logback-classic dependencies |
src/main/kotlin/.../LoggerProvider.kt |
Introduced LoggerProvider singleton for managing loggers |
src/main/kotlin/.../SdkConfig.kt |
Added SdkConfig class for setting custom loggers |
src/main/kotlin/.../crypto/Crypto.kt |
Updated cryptographic functions and added parameters |
src/main/kotlin/.../models.kt |
Corrected enum and added KECCAK256 and KMAC128 values |
src/main/kotlin/resources/logback.xml |
Introduced Logback configuration |
src/test/kotlin/.../LoggerProviderTest.kt |
Added tests for LoggerProvider |
src/test/kotlin/.../SdkConfigTest.kt |
Added tests for SdkConfig |
src/test/kotlin/.../crypto/CryptoTest.kt |
Added tests for cryptographic methods |
src/test/kotlin/.../models/HashAlgorithmTest.kt |
Added tests for new hash algorithms |
src/test/kotlin/.../ScriptTest.kt |
Minor changes to struct TestClass and main function |
In the realm of code, with bytes and logs, Where hashes mix with frogs and dogs. A custom logger sets the scene, With SLF4J, our apps are keen. Crypto enhanced, so safe and sound, In Java's land, new logs abound. ππ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
ββ53 filesβ Β±0ββββ53 suitesβ Β±0βββ7s :stopwatch: Β±0s 292 tests +5ββ291 :heavy_check_mark: +4ββ0 :zzz: Β±0ββ1 :x: +1β
For more details on these failures, see this check.
Results for commit 59feb70c.βΒ± Comparison against base commit 797007a9.
:recycle: This comment has been updated with latest results.
0 filesβ β-βββ7ββ0 suitesβ β-β7βββ0s :stopwatch: -27s 0 tests β-β33ββ0 :heavy_check_mark: β-β31ββ0 :zzz: Β±0ββ0 :x: β-β2β
Results for commit 38f19fb3.βΒ± Comparison against base commit a51dee88.
:recycle: This comment has been updated with latest results.
I'll also review this PR, but it seems to have changes from https://github.com/onflow/flow-jvm-sdk/pull/52 too, so I'll wait for #52 to be merged to see the specific changes of #53 clearer.
Thanks for rebasing the changes to the hashing branch ππΌ The PR title mentions ECDSA issues with secp256k1, is there a reference to where those issues are described? This is to help with the review. Thanks
@tarakby , yes the related issue is: https://github.com/the-nft-company/flow-jvm-sdk/issues/24 which links to 2 more follow-up issues. Will follow up on latest comments for hashing PR tomorrow as well. Thanks!
I think #71 covered the same issues addressed by this current PR, so it should be fine to close this PR.
Investigating reported GH issues with ECDSA_SECP256k1
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
SdkConfig
to allow custom logger integration.KECCAK256
andKMAC128
.Documentation
Tests
Enhancements
HashAlgorithm
to includeKECCAK256
andKMAC128
.