Skip to content

Implement basic unit/instance attestation#419

Open
md4096 wants to merge 5 commits intodevelopmentfrom
feature/wia-wua
Open

Implement basic unit/instance attestation#419
md4096 wants to merge 5 commits intodevelopmentfrom
feature/wia-wua

Conversation

@md4096
Copy link
Collaborator

@md4096 md4096 commented Jan 21, 2026

Wallet provider configuration screen:
grafikgrafik

Related:
a-sit-plus/vck#487
a-sit-plus/signum#400

@nodh
Copy link
Member

nodh commented Feb 11, 2026

Can we also add a configuration property and screen for the URL of the Wallet Provider Backendd?

@nodh
Copy link
Member

nodh commented Feb 12, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d15d43b8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@md4096 md4096 force-pushed the feature/wia-wua branch 3 times, most recently from cc69c21 to a505ac0 Compare February 20, 2026 14:16
@md4096 md4096 marked this pull request as ready for review February 26, 2026 12:53
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@md4096
Copy link
Collaborator Author

md4096 commented Feb 26, 2026

Pipeline failing until https://github.com/a-sit-plus/valera/tree/fix/build-issues merged

@nodh
Copy link
Member

nodh commented Feb 27, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c65fdad93

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@md4096 md4096 requested a review from nodh March 10, 2026 11:47
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@nodh
Copy link
Member

nodh commented Mar 11, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8cd05d66a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

LabeledText(text = "${it.payload.expiration}", label = stringResource(Res.string.text_label_attestation_expiration))
LabeledText(text = "${it.payload.eudiWalletInfo?.keyStorageInfo?.storageType}", label = stringResource(Res.string.text_label_attestation_storage_type))
}
if (bufferedUnitAttestation.value == null && bufferedInstanceAttestation.value == null) {

Choose a reason for hiding this comment

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

P2 Badge Allow retry when only one attestation preload succeeds

The load button is shown only when both buffers are null, but preloadAttestation() writes instance attestation before requesting unit attestation. If the unit call fails after instance succeeds, the screen ends up with instance != null and unit == null, which hides the button and leaves no in-screen way to retry fetching the missing unit attestation.

Useful? React with 👍 / 👎.

Copy link
Member

Choose a reason for hiding this comment

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

@md4096 sounds valid?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to an "or" logic for now. But i think this whole processing of the attestations gets a major overhaul with a proper wallet provider in place.

val instanceAttestation = requestInstanceAttestation()
val pop = instanceAttestationHelper.buildProofOfPossession()

return unitAttestationHelper.requestUnitAttestation(instanceAttestation, pop)

Choose a reason for hiding this comment

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

P2 Badge Cache newly requested unit attestations before returning

requestUnitAttestation() checks bufferedUnitAttestation for reuse, but when it fetches a fresh unit attestation it returns it directly without storing it. That means subsequent calls in the same process (for example repeated POP generation without an explicit preload) always re-hit the network instead of reusing the valid token, increasing latency and failure risk under provider throttling.

Useful? React with 👍 / 👎.

Copy link
Member

Choose a reason for hiding this comment

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

@md4096 sounds valid?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Proper key management is part of a subsequent PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I try to optimize it during the testing now

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@md4096
Copy link
Collaborator Author

md4096 commented Mar 12, 2026

Rebased the branch and i am going to retest the whole procedure

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@nodh
Copy link
Member

nodh commented Mar 13, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b90b3b1593

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".



fun getWalletProviderHost() = config.walletProviderHost
fun setWalletProviderHost(host: String) = config.set(walletProviderHost = host)

Choose a reason for hiding this comment

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

P1 Badge Clear attestation cache when wallet-provider host changes

Updating the wallet-provider host currently only persists the new URL, but both attestation caches remain valid and are reused solely by expiration checks. If a user preloads attestations for host A, switches to host B in settings, and then runs attestation-dependent flows, requestInstanceAttestation/requestUnitAttestation can still return host-A tokens until they expire, which can cause mismatched-provider failures (and the settings screen may keep the reload button hidden because buffers are still non-null).

Useful? React with 👍 / 👎.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Seems like a valid improvement

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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.

3 participants