Questions tagged [key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
1 answer
259 views

Recover ECDSA pub key from signature

I am trying to recover a ecdsa pub key from the given signature and data. But returned pubkey does not match with the signer. Is there something that is missing or wrong? let pair = ecdsa::Pair::...
salman01z's user avatar
  • 527
7 votes
0 answers
70 views

Pallet session: What is the purpose of the `proof` argument on the `set_keys` extrinsic?

The set_keys extrinsic in pallet_session has a second argument proof, which seems to be intended as an ownership proof of the keys. Looking at the body, there is a call to ownership_proof_is_valid. ...
nathanwhit's user avatar
6 votes
1 answer
200 views

How to avoid impersonation when using DescendOrigin XCM

I'm using Transact to execute an extrinsic from one parachain to another. This extrinsic requires the origin to be a signed account which I'm verifying with ensure_signed. The way I'm getting a signed ...
Juan Ignacio Rios's user avatar
4 votes
1 answer
467 views

Get a local node identity / peer id

I need to know my node's peer identity to use it as a boot node. Didn't start the node with --node-key. Also, the node has been running for so long that I can no longer access the startup logs ...
user1813's user avatar
4 votes
1 answer
122 views

How to verify that a signed payload of an unsigned extrinsic is signed by a local account?

I've been following the how-to guide to implementing unsigned extrinsic call with a signed payload. My pallet defines the following KeyTypeId: pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"ver!&...
digital illusion's user avatar
4 votes
1 answer
43 views

Is there a standard for generating system public keys?

I have noticed the entropy for system public key generation is prefixed with patterns like modlpy/proxy____. Is there a documented standard for the length or format of these prefixes? What is the ...
zekemostov's user avatar
3 votes
3 answers
134 views

What is KeyTypeId, and how to use it?

When I made use of an offchain signed extrinsic to send a transaction to a chain, I copied a snippet from others, which is like this: use sp_core::crypto::KeyTypeId; pub const KEY_TYPE: KeyTypeId = ...
kugool's user avatar
  • 161
2 votes
1 answer
41 views

What is the intended purpose of `sudo_as` from the sudo pallet?

I ask myself, why this extrinsic (https://github.com/paritytech/substrate/blob/e9b0facf70eeb08032cc7e83548c62f0b4a24bb1/frame/sudo/src/lib.rs#L224-L263) exists? I mean the sudo key could execute any ...
Chralt's user avatar
  • 523
2 votes
1 answer
119 views

How to test a local keystore?

I'm trying to add a test case for my function which is extracting key from the local Keystore. This is how I'm creating an instance of a local Keystore and setting a key inside it in my test ...
Pawan Bisht's user avatar
1 vote
3 answers
416 views

How can manually generate same address from mnemonic as subkey without it?

Can someone tell me how can I generate a secret/privateKey/miniSecretKey, publicKey without subkey the tool from a mnemonic? I am working on a c# implementation of the wallet generation and I'd ...
atesz's user avatar
  • 21
1 vote
1 answer
116 views

How do I work with SS58 encoded addresses?

I want to reason about SS58 addresses in any context with access to std, using Rust. What tools and techniques are needed to access the underlying keys? [Related What is the SS58 Format?]
Nuke's user avatar
  • 1,822
1 vote
1 answer
76 views

May accounts use ed25519

Is it possible to use ed25519 for account key pairs on a substrate based blockchain instead of the default?
donkeydonkey's user avatar
1 vote
1 answer
78 views

Command to insert keys in Polkadot Relay Chain and Parachain for Custom Validators in ChainSpec?

I have the keys separate in a file. I don't want to insert keys for polkadot js app for each node running the relay chain. Same for collator for parachain. What is command to insert keys through CLI?
Rohitas_atr894's user avatar
1 vote
1 answer
183 views

Keys cannot be added to keystore

Problem Keys cannot be added to keystore. Situation description To launch the private network, the boot node was first started and succeeded.[❶] The next time I tried to add a keys to the keystore I ...
ooohiroyukiooo's user avatar
1 vote
1 answer
101 views

Same mnemonic gives different keys in trust wallet and in polkadot.js

I want to transfer the management of my dot account from polkadat.js to trustwallet. The problem I am facing is that the same mnemonic give different key in those applications. How to deal with that? ...
Superluminal's user avatar
1 vote
0 answers
30 views

How to obtain the private key from the mnemonic phrase? [duplicate]

I want to add my dot address to the trust wallet. For that I need the private key. How to transform the mnemonic to the private key.
Superluminal's user avatar
1 vote
2 answers
160 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/...
CREESTL's user avatar
  • 474
0 votes
1 answer
60 views

Is it possible to sign a message using the private key of a contract account?

For example, I have deployed an ink! contract via polkadot apps. Is it possible to obtain the private key of the contract account and sign an arbitrary message?
forgetso's user avatar
  • 1,462
0 votes
1 answer
50 views

Light client key

Does the smoldot light client automatically generate keys or use the secret phrase to generate keys? In the substrate connect tutorial, client node seems automatically connects to the network with the ...
shao's user avatar
  • 1
0 votes
1 answer
16 views

How to force runtime upgrades only after an enactment period of three months with the sudo pallet?

I would like to use the sudo pallet instead of the democracy pallet. Now I would like to force the sudo user to wait three months until a runtime upgrade can be applied. So, that there is no way to ...
Chralt's user avatar
  • 523
0 votes
1 answer
52 views

Use Ledger For ECDSA Signature in Python Substrate Interface

I'm trying to create a KeyPair class instance (https://github.com/polkascan/py-substrate-interface/blob/master/substrateinterface/base.py) from a Ledger hardware wallet. Does anyone know how to do ...
kayolord's user avatar
0 votes
1 answer
38 views

How to sign with private key(Not secret key) that was created by "RFC-8032"(described below contents) on offline?

Backgrounds I am working on "ASTAR" parachain scene(TestNet: Shibuya). I can sign message(unsigned-transaction) on offline environment and then broadcast signed-messaged(signed-transaction). ...
JOHNNY JI's user avatar