polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.07k stars 350 forks source link

Support single signatures #2844

Closed joelamouche closed 3 years ago

joelamouche commented 3 years ago

Currently, polkadotjs only supports having multisignature (sr25519, ed25519, ecdsa). The limitation comes from the codec which prefixes the signature with the enum number.

This forces moonbeam to use a multisignature protocol too faking the 2 first implementations.

@jacogr do you think we can change the sdk to support a single ecdsa signature extrinsic? Also checking that this isn't already implemented or if it's impossible for some reason.

Thanks in advance

jacogr commented 3 years ago

Support for Extrinsic v3 was dropped completely. The upgrade from v3 -> v4 was done because of the move from AnySignature to MultiSignature, i.e. MultiSignature was the reason for the change. So actually doing anything but MultiSignature on extrinsic v4 is wrong from a historic perspective.

However, there is an issue logged to break that protocol already, in the cases where chain want to override the Signature type, see https://github.com/polkadot-js/api/issues/2536 (aka this is a duplicate)

joelamouche commented 3 years ago

thank you for your answer. Let me get back to you

polkadot-js-bot commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.