Questions tagged [keyring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
1 answer
160 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
2 votes
1 answer
156 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
  • 616
2 votes
1 answer
77 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
  • 161
1 vote
1 answer
74 views

Error: Unable to initialise options more than once

I am using polkadotjs/ui-keyring in which i am trying to use different accounts stores based on user preferences. And i am calling the loadAll to get all the accounts to the keyring, as shown in the ...
Emmanuel Thomas's user avatar
1 vote
3 answers
407 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
201 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
1 vote
1 answer
65 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
1 answer
50 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
0 votes
1 answer
46 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
  • 161
0 votes
1 answer
24 views

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

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