starknet.js icon indicating copy to clipboard operation
starknet.js copied to clipboard

Typed data aggregate (SNIP-12)

Open penovicp opened this issue 6 months ago • 5 comments

Motivation and Resolution

Aggregate for the reported typed data issues. Each commit addresses a corresponding issue (or PR).

Extracted to provide a unified overview so that potential impact can be evaluated and coordinated.

Issues:

  • #1278
  • #1286
  • #1341
  • #1342
  • #1343
  • #1348
  • #1039

penovicp avatar Jun 05 '25 06:06 penovicp

Summary of what we currently plan, please ack

@xJonathanLEI @sgc-code @franciszekjob @penovicp @tabaktoni @thiagodeev

#1278 - fix js implementation #1286 - fix js implementation #1341 - fix js implementation #1343 - fix js implementation

#1039 - Don't change implementation, clarify the SNIP

#1342 - Don't change implementation, clarify the snip, have a new revision if the change is necessary #1348 - Don't change implementation, clarify the snip, have a new revision if the change is necessary

@sgc-code, @penovicp @xJonathanLEI @tabaktoni @franciszekjob

amanusk avatar Jun 05 '25 12:06 amanusk

Thanks @amanusk. Please let us know when these changes are released so I can update Starknet.go code

thiagodeev avatar Jun 05 '25 13:06 thiagodeev

#1039 - Don't change implementation, clarify the SNIP #1342 - Don't change implementation, clarify the snip, have a new revision if the change is necessary #1348 - Don't change implementation, clarify the snip, have a new revision if the change is necessary

This were actually addressed in this PR

sgc-code avatar Jun 05 '25 13:06 sgc-code

I think it's missing the fixes for these two issues: https://github.com/starknet-io/starknet.js/issues/1287 and https://github.com/starknet-io/starknet.js/issues/1362

sgc-code avatar Jun 05 '25 13:06 sgc-code

#1039 - Don't change implementation, clarify the SNIP #1342 - Don't change implementation, clarify the snip, have a new revision if the change is necessary #1348 - Don't change implementation, clarify the snip, have a new revision if the change is necessary

This were actually addressed in this PR

Like the previous aggregate, the idea here is to have them all available in one place, from there to evaluate potential impact and pick which will be applied and in what way.

To address the other message here:


  • #1287 - It was picked out in a similar approach as previously mentioned and has been included since v6.24.1.
  • #1362 - I addressed in a comment there. The SNIP doesn't foresee the usage of the requested type/message format, and a more verbose one should be used.

penovicp avatar Jun 06 '25 09:06 penovicp