Should v5 Signer API use micro-starknet's Signature type directly? #565
Replies: 3 comments 1 reply
-
Yes, it was bad on my side to use the Signature Class from micro-starknet. I had a discussion with @janek26 few months ago, where we faced the same issue as you. We should keep the type of Signature similar to starknet v4. i.e
|
Beta Was this translation helpful? Give feedback.
-
@yoga-braavos @dhruvkelawala @janek26 Please take a look at this resolution. After playing around I manage to make this solution based on default implementation and to allow custom implementation without changing the interface. |
Beta Was this translation helpful? Give feedback.
-
#570 merged, so I'll close this discussion! thanks to all! |
Beta Was this translation helpful? Give feedback.
-
Currently the return value from several Signer interface APIs are defined as
Signature
, which is:declare type Signature = _noble_curves_abstract_weierstrass.SignatureType;
I would suggest that the Signer interface will be generic and not coupled to a specific library's types (i.e.
micro-starknet
) - As an interface it should support other use-cases that might not use or even be incompatible with micro-starknet.I encountered this issue when migrating Braavos's code-base to starknet.js v5 and indeed our use case is incompatible with the current
Signature
type.Beta Was this translation helpful? Give feedback.
All reactions