Questions tagged [keyring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
44 views

Getting Error when i push session keys session.NoAssociatedValidatorId

I'm getting the error session.NoAssociatedValidatorId while inserting session keys, Although my Explorer is connect to same explorer and Keys are generated by using RPC->RotateKeys(). Any sort of ...
BlockBird's user avatar
1 vote
1 answer
131 views

How to sign a transaction using secretKey with polkadot/api?

I generated the secretKey and publicKey using the steps in https://polkadot.js.org/docs/keyring/start/create/. After I get the secretKey and publicKey, I want to sign a tx using only the secretKey. ...
Teodorus Nathaniel's user avatar
2 votes
1 answer
131 views

How i convert Raw seed to Private Key in Substrate

I have a toy example : My keypair is ed25519 const seed = [ 40, 246, 184, 64, 69, 145, 132, 131, 231, 66, 112, 159, 162, 36, 79, 197, 62, 54, 222, 103, 122, 190, 7, 143, 94, 190, ...
CocDap's user avatar
  • 561
0 votes
1 answer
43 views

How to import sp_core::Pair?

In my last question, I asked about how to generate key pair in substrate.But it seems that it is hard to do this.So I have to make a conclusion that I can't generate key pair in substrate sadly. But ...
kugool's user avatar
  • 141
2 votes
1 answer
69 views

How to generate key pair in pallet or on offchain work

I received a task which is generating key pair in pallet on chain logic. I know that I should import sp_core crate. I import it like this: "use sp_core::Pair;" This line was written at the ...
kugool's user avatar
  • 141
1 vote
1 answer
59 views

How to create Signature from &str?

I'm trying to create a basic HTTP server that authorizes users with Authorization Pubkey:Sig like what Crust explained here. However, creating a Signature from &str with Signature::fromSlice() ...
Burak's user avatar
  • 893
1 vote
3 answers
367 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
5 votes
1 answer
137 views

PolkadotJS ALICE address differs

When I try to derive the Alice account with PolkadotJS I somehow end up with a different address than in the docs. Here is the code: const keyring = new (require('@polkadot/keyring').Keyring)(); let ...
Oliver Tale-Yazdi's user avatar