leonardocustodio / polkadart

Polkadart provides developers the ability to query a node and interact with the Polkadot based chains using Dart.
https://polkadart.dev
Apache License 2.0
39 stars 16 forks source link

Sign and verify messages using sr25519 and ecdsa keypairs #357

Closed justkawal closed 10 months ago

justkawal commented 1 year ago

Tracking issues for support Sr25519 and ECDSA schemes:

Currently there's no Sr25519 equivalent library in Dart, limiting polkadart to ED25519 and ECDSA keys. The polkadot-api javascript implementation also uses the rust code compiled to webassembly @polkadot/wasm-crypto.

Unfortunately we cannot assume a webassembly container in dart, which left us with two options: 1 - Implement Flutter and Dart native bindings (it still doesn't work for web targets). 2 - Rewrite schnorrkel in dart (very slow and unsafe, as dart doesn't provide memory safety that rust does).