Questions tagged [sr25519]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

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
3 votes
0 answers
31 views

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,809
1 vote
1 answer
71 views

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
1 answer
277 views

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

I tried the following code, using method generate. https://paritytech.github.io/substrate/master/sp_core/crypto/trait.Pair.html#method.generate use sp_core::{ sr25519, ed25519, Pair, }; ...
Amiya Behera's user avatar
6 votes
1 answer
441 views

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
1 vote
1 answer
131 views

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
  • 161
5 votes
2 answers
256 views

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
30 votes
2 answers
29k views

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
  • 15.9k