Questions tagged [cryptography]
The cryptography tag has no usage guidance.
8
questions
1
vote
2
answers
31
views
Problems With `app_crypto!` Macro
I have the following error while building:
error[E0599]: no function or associated item named `generate_with_phrase` found for struct `crain_pow::app::Pair` in the current scope
--> node/src/...
4
votes
1
answer
30
views
Web3 Foundation - Accountable light clients via BLS multisignature rollup
I listened to a talk at zksummit7 titled "Web3 Foundation
Accountable light clients via BLS multisignature rollup" given by Alistair from web3f. My interpretation of the talk is that ...
4
votes
1
answer
103
views
How does Substrate detect the signing scheme when verifying signatures?
Substrate supports multiple signature schemes: ecdsa, sr2551, ed25519.
When sending a signed transaction how does substrate know what scheme to use for signature verification?
6
votes
1
answer
37
views
How do I verify a signature signed using Polkadot.js app with rust code
I am trying to write a discord bot using rust/serenity to verify signature signed using polkadot.js app. I use schnorrkel crate, wrap the message in <Bytes>...</Bytes> and use the verify ...
2
votes
1
answer
39
views
zk SNARKs based anonymous voting [closed]
I want to implement zk-SNARKs based anonymous voting. Are there examples or packages available for substrate? Where can I get started.
11
votes
2
answers
71
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 ...
2
votes
1
answer
33
views
Convert Ed25519 signature/pub-key to sr25519
Working on libwallet we'd like to create a back-end for Rust friendly micro-controllers for possible future Substrate friendly hardware wallets. The nRF52 and other chips are very common in the ...
9
votes
2
answers
129
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 ...