Skip to main content

Questions tagged [sr25519]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
31 votes
2 answers

Why does the all 0 public key have a known private key in SR25519 and ED25519?

We have seen evidence that users can sign messages using the SR25519 and ED25519 public key with all zeros. Why or how is the private key to this public key known? Are there any other things users ...
Shawn Tabrizi's user avatar
  • 16.1k
6 votes
1 answer

Why are sr25519 signatures non-deterministic?

According to the polkadot.js docs, both ed25519 and ecdsa signatures are deterministic (given the message and private key, it always produces the same signature). However sr25519 is not. I understand ...
h4x3rotab's user avatar
  • 717
5 votes
2 answers

How do ECDSA subkeys differ from Bitcoin/Ethereum keys?

As far as I understand, besides the ed25519 and sr25519 signatures, there is a compatibility mode for ECDSA keypairs that should use the secp256k1 curve. Both Bitcoin and Ethereum use the secp256k1 ...
q9f's user avatar
  • 307
3 votes
0 answers

Why does Grandpa not use sr25519?

I note that Grandpa uses ed25519 keys rather than the substrate standard of sr25519. Is it because sr25519 signatures are non-deterministic? ( Why are sr25519 signatures non-deterministic? ) or is ...
Squirrel's user avatar
  • 3,849
1 vote
1 answer

Can I use ECDSA address which is compatible with Ethereum as the Native address in a substrate based blockchain?

For my project, I have to build a blockchain using ECDSA address in order to be compatible with Ethereum. But the native address is in sr25519 scheme in substrate. What should I do to implement this? ...
kugool's user avatar
  • 171
1 vote
1 answer

How to Implement P2P Encryption with sr25519 key pair using NaCl or alternatives?

I am currently working on a project that involves P2P encryption using Substrate addresses and sr25519 cryptographic keys. However, I am encountering difficulties in implementing encryption and ...
Oleh Mell's user avatar
0 votes
0 answers

Is it secure enough use an Ed25519 expanded secret key which converted from a sr25519 key

I am developing a wallet using Rust and I want it to be compatible with polkadot-js import/export functionality. I know that polkadot-js uses the ed25519 extended mode for sr25519 private keys. So, I ...
Xu Neal's user avatar
0 votes
1 answer

How to generate a new account with seed using rust? [duplicate]

I tried the following code, using method generate. use sp_core::{ sr25519, ed25519, Pair, }; ...
Amiya Behera's user avatar