Skip to content

Critical code review PR - Last sprint handover checklist of 1.3.0 release#96

Closed
vishwa-vyom wants to merge 5 commits intomasterfrom
release-1.3.x
Closed

Critical code review PR - Last sprint handover checklist of 1.3.0 release#96
vishwa-vyom wants to merge 5 commits intomasterfrom
release-1.3.x

Conversation

@vishwa-vyom
Copy link
Contributor

This PR is created just to add the review comments as part of the critical code review task of last sprint handover checklist for release of 1.3.0 version.

** THIS PR SHOULD NOT BE MERGED **

Alka1703 and others added 4 commits March 17, 2025 16:51
* [INJIMOB-1699] add es256k supprt

Signed-off-by: Abhishek Paul <[email protected]>

* [INJIMOB-1699] refactor code

Signed-off-by: Abhishek Paul <[email protected]>

---------

Signed-off-by: Abhishek Paul <[email protected]>
* [INJIMOB-3102] update did web url parsing logic

Signed-off-by: sairam-girirao_infosys <[email protected]>

* [INJIMOB-3102]: Did url Parsing based on path components

Signed-off-by: sairam-girirao_infosys <[email protected]>

* [INJIMOB-3102]: Did url Parsing based on path components

Signed-off-by: sairam-girirao_infosys <[email protected]>

* [INJIMOB-3102]: Did url Parsing based on path components

Signed-off-by: sairam-girirao_infosys <[email protected]>

* [INJIMOB-3102]:Upadted Did URl parsing

Signed-off-by: sairam-girirao_infosys <[email protected]>

* [INJIMOB-3102]:did url parsing correction

Signed-off-by: Sairam Girirao <[email protected]>

---------

Signed-off-by: sairam-girirao_infosys <[email protected]>
Signed-off-by: Sairam Girirao <[email protected]>
val verificationMethods = didDocument[VERIFICATION_METHOD] as? List<Map<String, Any>>
?: throw PublicKeyNotFoundException("Verification method not found in DID document")

val verificationMethod = verificationMethods.firstOrNull()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Critical: I think we should not take the first, rather we should filter with the id field matching the verificationMethod URI

Copy link
Contributor

Choose a reason for hiding this comment

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

* - 0x02 (Integer marker) + Length of S + S value
*
*/
private fun convertRawSignatureToDER(signature: ByteArray): ByteArray {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we not use bouncycastle methods to do this conversion instead of us handling ?

@ckm007 ckm007 closed this Jun 2, 2025
@ckm007 ckm007 deleted the release-1.3.x branch June 2, 2025 10:04
@swatigoel swatigoel restored the release-1.3.x branch June 3, 2025 06:59
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.

6 participants

Comments