Questions tagged [keyring]
The keyring tag has no usage guidance.
10
questions
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 ...
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, ...
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 ...
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 ...
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 ...
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. ...
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() ...
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 ...
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 ...
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).
...