Questions tagged [cryptography]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12 votes
2 answers
576 views

How to verify a signature in a Pallet?

I have a Pallet that should verify a signature for some input data and a specific public key. It looks like this: fn verify(_: OriginFor<T>, data: Vec<u8>, sig: ???, from: ???) Is this ...
Oliver Tale-Yazdi's user avatar
29 votes
2 answers
28k 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.8k
2 votes
2 answers
203 views

verify a signature in pallet

I followed the answer of "how to verify a signature in a pallet", and try to verify some data signed by a private key on chain logic. #[pallet::weight(10_000)] pub fn my_verify(...
kugool's user avatar
  • 161