Skip to main content
31 votes
Accepted

If I saved my view key and spend key can I recover my wallet if my mnemonic seed is lost?

Yes, it is possible to restore your account with just the view and spend keys. monero-wallet-cli has the --generate-from-keys <name> option, which will create a wallet with the given name, and ...
user36303's user avatar
  • 34.9k
15 votes
Accepted

private spend key versus mnemonic seed

Thanks to deterministic key derivation, the private spend key is an alternate representation of the mnemonic seed. Both the mnemonic seed and private spend key can be used to derive all other keys ...
254123179's user avatar
  • 4,566
11 votes
Accepted

What significance does the wallet public spendkey and public viewkey have in a transaction?

You have a public and private spend key, and a public and private view key. The public spend and view keys are used to create an output that only you can see that exists, and that only you can spend. ...
knaccc's user avatar
  • 8,468
11 votes
Accepted

What are the "public" viewkeys and spendkeys?

Note: the letters between parantheses correspond to the letters used for the math in the CryptoNote whitepaper¹. The public view key (A) and public spend key (B) are the counterparts of the private ...
dEBRUYNE's user avatar
  • 15.2k
8 votes

If I saved my view key and spend key can I recover my wallet if my mnemonic seed is lost?

You can recover the wallet with this simplewallet command: --generate-from-keys
Smart Kid's user avatar
  • 6,563
7 votes

Can the import\export key images command can be used to check the balance of a paperwallet?

Is it possible to get a transaction key image from a Paperwallet without exposing the spendkey or seed? It depends on your definition of "expose". Key images can of course be computed offline, even ...
Luigi's user avatar
  • 2,462
6 votes

If I saved my view key and spend key can I recover my wallet if my mnemonic seed is lost?

I tested simplewallet’s --generate-from-json option, using only the spendkey and the viewkey, and as expected, it worked. However, from Luigi's address test page, I learnt that the "Private View Key" ...
dpzz's user avatar
  • 4,539
4 votes
Accepted

Is the entropy for the mnemonic seed and the private spend key exactly the same?

The seed is another representation of the private spend key. Because of this, entropy of the seed must equal the entropy of the private spend key. Wallet recovery is easy with either the private keys ...
1010101 Lifestyle's user avatar
4 votes
Accepted

Generate a wallet file from a spend key in the command line using the CLI wallet in a "non-interactive" way for scripting purpose

You should use --generate-from-json for this. The input fields in the JSON file are: version: integer, should be 1 filename: string, path/filename for the newly created wallet ...
user36303's user avatar
  • 34.9k
4 votes
Accepted

Minimum amount of keys needed to recover funds?

Is it possible to recover all your xmr funds from providing only your private spend key? That depends on whether the private spend key is deterministic or not. First, a bit of history. In Monero's ...
dEBRUYNE's user avatar
  • 15.2k
4 votes
Accepted

I have a private key for a monero address. Which application lets me load in a custom private key to spend from?

Both the official CLI and GUI will allow you to restore a wallet from keys. In order to import a wallet from keys you need (i) the private spend key, (ii) the private view key, and (iii) the public ...
dEBRUYNE's user avatar
  • 15.2k
4 votes
Accepted

What is a valid public key in Monero?

sc_reduce just takes a 256 bit number and reduces it mod 𝑙 to yield a scalar of the correct curve order. Nothing special. Any number between 0 and 𝑙 is a valid scalar. For a point (which is what a ...
jtgrassie's user avatar
  • 19.1k
3 votes
Accepted

Number of possible Monero wallets and seeds

How many possible unique Monero wallets and seeds exist? To understand the number of possibilities, we must first look into how are monero wallets and seed mnemonics created. I think this pretty much ...
JollyMort's user avatar
  • 19.9k
3 votes

What are the "public" viewkeys and spendkeys?

The public keys are the matching part of the private keys. Public key cryptography is a system where encryption is done using a public key, while decryption is done by a private key, and signing is ...
user36303's user avatar
  • 34.9k
3 votes
Accepted

In Monero can you sweep a wallet if you *ONLY* have the private spend key?

Yes. In a nutshell, the spend key is deterministic and therefore you'd be able to derive the private view key. Subsequently, you can generate the public counterparts by multiplying the private keys ...
dEBRUYNE's user avatar
  • 15.2k
3 votes
Accepted

How does inner key generation work?

There's an additional step performed, called "normalization". It's just a modulo operation with l. See sc_reduce32 ... is it really supposed to be that complicated? Oh and note that mnemonic is ...
3 votes
Accepted

Do sub-addresses and disposable addresses have their own private viewkeys and spendkeys?

No. Given an output pubkey P in a new transaction with its tx pubkey being R, you can recognize it as your incoming transfer by using your private viewkey a, looking for P - Hs(a*R)*G in your ...
kenshi84's user avatar
  • 2,475
2 votes

Can I retroactively add the spendkey to a watch only wallet?

As per Jolly Mort's comment, this is currently not possible.
tficharmers's user avatar
2 votes
Accepted

What is the the difference from spendkey vs the viewkey in Monero?

Do you give the public view and spend key to the person that is paying you? Yes. Both are conveniently packed inside your address. Think of them as "instruction to sender". I'm using the monero ...
JollyMort's user avatar
  • 19.9k
2 votes

Minimum amount of keys needed to recover funds?

Private spend key is usually enough because both the private view key and the address can be generated from it. There's curtently no way to do it with CLI alone. You'd have to convert the private ...
JollyMort's user avatar
  • 19.9k
2 votes

Is it possible to fake the date of arrival of funds?

No, this is not possible. Knowledge of the private keys for a wallet will identify the specific outputs on the blockchain owned by the wallet. The blockchain holds an immutable record of the creation ...
knaccc's user avatar
  • 8,468
2 votes
Accepted

Is there a javascript implementation to generate your Monero subaddresses without giving out your private-spend key?

Yes, you can use this Javascript NPM package to generate subaddresses: https://www.npmjs.com/package/subaddress
knaccc's user avatar
  • 8,468
2 votes
Accepted

Is there a command line tool like bx to bitcoin that I can use with cryptographs

Monero uses several special methods like Keccak hash function or CRC32 etc There is nothing particularly special w.r.t. Monero's usage of Keccak or CRC32. Is there a command line tool like bx to ...
jtgrassie's user avatar
  • 19.1k
2 votes
Accepted

How can I get the right Keccak-256 tools. The online tool seems wrong...?

The online tool works perfectly, but the form accepts text and you were pasting in hex. The ASCII string "198584347013dd91832be3d82529437db7cc8e1850e559cdd3872b29ca819601" is ...
knaccc's user avatar
  • 8,468
2 votes
Accepted

Are hex private keys already in little endian format?

Is the 256-bit hex key that any wallet generates in Little or Big Endian format? How a particular wallet exports/displays a key is really implementation specific, but for official Monero code/wallets ...
jtgrassie's user avatar
  • 19.1k
1 vote

How do I manually generate a base58 private key from my secret spendkey?

Monero has some base58 functions in src/common/base58.*. If for some reason you wanted to store your secret keys as base58, you could use those. There are usage examples in tests/unit_tests/base58.cpp....
user36303's user avatar
  • 34.9k
1 vote

How to calculate Monero addresses for different account numbers?

Each account is simply another subaddress. Therefore the math is identical to the usual subaddresses calculation - it is still represented by an i index in: PSi = Hs(pV0 || i) G + PS0 (using ...
jtgrassie's user avatar
  • 19.1k
1 vote
Accepted

Building a service to hold Monero private keys. I need to update user's balance every 1-3 hours

The only way I can see to speed this up is to write some code that does parallel crypto ops at a lowish level, roughly where the calls to is_out_to_acc_precomp are made. You can then save all the tx ...
user36303's user avatar
  • 34.9k
1 vote

When using the android and iOS monero wallets. How does it not send the private spend key to the node to scan the blockchain?

Monero has two private keys, the private spend key and the private view key. The private spend key is needed for determining whether an output that you own has been spent, creating a key image for ...
scoobybejesus's user avatar
1 vote

Different view key and spend key after importing private key?

For deterministic wallets, you might want to use addresstests JavaScript-based code to examine a low valued Monero wallet. Also examine results of the XMR C++ package script commands: % echo "...
skaht's user avatar
  • 1,576

Only top scored, non community-wiki answers of a minimum length are eligible