Skip to content

fix(be): Use correct domain separator for sender info#3733

Merged
aterga merged 3 commits intomainfrom
arshavir/use-correct-domain-separator-for-sender-info
Apr 3, 2026
Merged

fix(be): Use correct domain separator for sender info#3733
aterga merged 3 commits intomainfrom
arshavir/use-correct-domain-separator-for-sender-info

Conversation

@aterga
Copy link
Copy Markdown
Collaborator

@aterga aterga commented Apr 3, 2026

This PR adjusts the value of DELEGATION_SIG_DOMAIN used during the creation of the new ICRC-3 attribute signatures. The correction matches what is described in the latest ICP spec draft.

@aterga aterga marked this pull request as ready for review April 3, 2026 08:55
@aterga aterga requested a review from a team as a code owner April 3, 2026 08:55
Copilot AI review requested due to automatic review settings April 3, 2026 08:55
@aterga aterga requested a review from sea-snake April 3, 2026 08:55
@aterga aterga enabled auto-merge April 3, 2026 08:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to update the signature domain separator used for ICRC-3 “sender info” / attribute-signature generation and verification so it matches the latest IC interface spec draft.

Changes:

  • Replace the previous ICRC-3 attribute signature domain (ic-request-auth-info) with the spec-aligned value (ic-sender-info).
  • Update both canister-side constants and the corresponding canister-test verification helper to use the corrected domain.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/internet_identity/src/attributes.rs Introduces a new domain constant intended for ICRC-3 attribute signatures, aligning with the spec link/value.
src/canister_tests/src/framework.rs Updates the domain constant used by verify_icrc3_attributes to the new spec-aligned value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/internet_identity/src/attributes.rs
Comment thread src/canister_tests/src/framework.rs
Comment thread src/internet_identity/src/attributes.rs
@aterga aterga added this pull request to the merge queue Apr 3, 2026
Merged via the queue into main with commit 8a482f2 Apr 3, 2026
46 checks passed
@aterga aterga deleted the arshavir/use-correct-domain-separator-for-sender-info branch April 3, 2026 09:17
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