Skip to main content

Questions tagged [keyring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 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). ...
0 votes
1 answer
40 views

How to create a same polkadot wallet from mnemonic like trustwallet using @polkadot/keyring?

I have to create a wallet of polkadot like trustwallet. I tried to create a wallet with "type: ed25519" but it also return different address. Here is the trust wallet configuration { &...
0 votes
0 answers
28 views

Keyring-ui Error: Unable to initialise options more than once

GM! Im trying to initialice keyring, but for some reason its already inicialized. This is my code: "use client" import React, { useState, useEffect, createContext, useContext } from "...
1 vote
1 answer
93 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
1 answer
94 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 ...
1 vote
1 answer
339 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. ...
2 votes
1 answer
235 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, ...
0 votes
1 answer
59 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 ...
2 votes
1 answer
99 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
71 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
3 answers
561 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 ...
6 votes
1 answer
214 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 ...