Closed frederikrothenberger closed 3 months ago
@sea-snake: I made the device_spec
optional in the icrc21_consent_message_spec
to address the points raised in working group meeting that we had earlier today. I also clarified the comments to be more explicit about fallbacks.
This PR refactors how the user preferences are handled in the ICRC-21 standard:
icrc21_consent_message_spec
present in both the request and the response. This makes it easier for signers to compare the requested spec to the actual spec.icrc21_consent_message_spec
can now be expanded without affecting other types (previously the language preference was duplicated in theicrc21_consent_preferences
andicrc21_consent_info
).icrc21_consent_message_spec
is expanded to handle line displays. This is required for devices such as thee Ledger hardware wallets to process ICRC-21 consent messages.The candid interface is split into a separate file to make it easier to use for developers.