SDK-2650: Implement SDK Helper Methods for Digital ID estimated_age Attribute #488
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To address the requirement of enabling Relying Parties to easily request the
estimated_age
attribute with a fallback to thedate_of_birth
attribute from Digital ID app shares, we need to implement helper methods in the SDKs. Here is a detailed implementation plan:Implementation Plan
1. Understand the Requirement and Constraints
estimated_age
anddate_of_birth
attributes are requested within the Digital ID app framework.derivation
field, specifically focusing on:age_over:18:5
.2. Design Helper Methods
Define Method Signatures:
getEstimatedAgeOrDOB(int ageOfInterest, int buffer)
Determine Return Types:
Decide on Error Handling:
3. Implement the Features
estimated_age
availability first, then fallback todate_of_birth
.age_over
logic.4. Integrate into SDK
5. Quality Assurance and Review
6. Deployment and Communication
7. Feedback and Iteration
By maintaining clear structure and organization in this plan, software engineers will be able to effectively implement and deploy the necessary changes to streamline the attribute request process for Relying Parties.