Hot answers tagged

13 votes
Accepted

What are the benefits of the two accounts model?

For the user, yes, it would be easier to just get your rewards on your spending account as a UTXO. However, this is not scalable at all. What this means is that every 5 days, the network would be ...
user avatar
10 votes
Accepted

How can a single Cardano Wallet have many addresses?

Your “wallet” is really just a private key that only you know. You can use that key to deterministically generate many addresses, each address with a unique index. But no one can derive those ...
user avatar
7 votes
Accepted

Is there any risk in sharing my rewards address?

The only risks associated with sharing any kind of public/verification keys or addresses have to do with de-anonymization. If you are concerned with Maladex, your ISP, a traffic sniffer, or any other ...
user avatar
  • 2,961
7 votes

Nami wallet showing getBalance returning a NaN

getBalance function returns cbor encoded hex string, so you should actually decode it. Easiest way to do it is by using Cardano Serialization Lib. After you've downloaded the library you can decoded ...
user avatar
  • 551
7 votes
Accepted

What's the point of new incoming addresses with the Daedalus wallet?

While it's intended to be a privacy-enhancing measure, it's currently somewhat negated by the fact that any Cardano wallet that's currently registered for staking has every address easily linked to ...
user avatar
  • 396
6 votes

Staking Key a Privacy risk?

Can staking keys be generated on the curve like public addresses are to preserve privacy? While it is possible to create enterprise addresses or additional base addresses with new staking keys using ...
user avatar
  • 326
6 votes

How can I derive an address from a private key?

A robust way to do that is to use cardano-wallet CLI. First of all, run cardano-wallet serve and cardano-node. Root Key The command that helps us writing a root private key into a file should look ...
user avatar
  • 1,597
6 votes
Accepted

Staking address bech32

The e comes from these address prefixes defined in the CDDL https://github.com/input-output-hk/cardano-ledger/blob/f2a783cf00911b7492e81dd6c7fb8a963f9ce8fe/eras/shelley/test-suite/cddl-files/shelley....
user avatar
5 votes
Accepted

How to get Wallet ID from an address?

Think of cardano-wallet as Daedalus, it can only manage locally created wallets and their addresses and transactions. If you want to interact with the blockchain as a whole you should be using cardano-...
user avatar
5 votes
Accepted

get wallet skey/vkey from mnemonic

You are missing the stake key. You obtain the stake key pair like this: cat rootkey.prv | cardano-address key child 1852H/1815H/0H/2/0 > stake.prv cardano-cli key convert-cardano-address-key --...
user avatar
4 votes
Accepted

What encoding is used for Yorois Wallet export?

After a lot of trial and error, I figured it out myself. TLDR The "key" that results from the Yoroi export indeed needs to be encoded with bech32, using the prefix acct_xvk. Demonstration/...
user avatar
  • 291
4 votes

Structure of the Address type from Plutus.V1.Ledger.Address

The piece of data you show is encoded in Base16. Addresses are however typically encoded as Bech32 which allows for defining human readable prefixes like "addr_test". As a matter of fact, it ...
user avatar
  • 365
4 votes

How do I properly derive a stake key from an address using Bech32?

Credit to someone on Reddit who helped me with this: Deriving the staking address requires you to manually update the header byte before bech32 encoding the hex account. All I needed to do was add e1 ...
user avatar
3 votes

How can a single Cardano Wallet have many addresses?

Wallet addresses are public keys mathematically derived from private keys and encoded to a special format. The ability of a wallet to generate multiple addresses is determined by the implementation of ...
user avatar
  • 305
3 votes

bech32 in Shelley addresses

I would use the bech32 decoder tool available here: https://github.com/input-output-hk/bech32 You can also find it in Daedalus in the binaries folder for your platform. $ bech32 <<< ...
user avatar
3 votes
Accepted

Where can I find an official docs about private and public keys' generation?

This page is pretty good with the cli commands needed for doing this: https://developers.cardano.org/docs/integrate-cardano/creating-wallet-faucet I remember seeing some examples in Python that just ...
user avatar
  • 218
3 votes
Accepted

What is the relationship between addresses and stake addresses?

Usually, the Shelley address contains the staking address inside (delegation part), so it is not possible to change it. But they are other types of addresses. One of the best resources to learn about ...
user avatar
3 votes

How to get around a "withdrawal address format is wrong" error?

It may be that your copy/paste is carrying across more characters than you expect. It may contain a trailing whitespace or non-visible character (e.g. cr or newline). On Windows, I eliminate this ...
user avatar
  • 1,927
3 votes
Accepted

Change Address in transaction

Cardano utilizes a UTXO-style accounting model (similar to bitcoin, but with extra features), as opposed to an accounting model, like what Ehtereum uses. Here is a quick overview of the differences. ...
user avatar
  • 2,961
3 votes

Short address crashed blockfrost calls

Those are called Enterprise addresses, originally intended for exchanges but everyday users have started to adopt them for various reasons. Unfortunately, I can't speak to why Blockfrost API chokes ...
user avatar
2 votes
Accepted

Why is there a small difference between addresses derived by the cardano-address tool and Yoroi?

There is indeed missing a part of the address: the delegation part. For more information, please refer to this partially duplicate question and CIP-0019. To derive Yoroi addresses from a seed phrase ...
user avatar
  • 291
2 votes
Accepted

bech32 in Shelley addresses

The problem stems from bech32 being a base5 encoding, which means that one character of address representation encodes only 5 bits of the actual address data. The bech32_decode function from Python ...
user avatar
  • 756
2 votes

Why are cardano-cli generated payment addresses shorter than those from Yoroi or Daedalus?

The first part is a 'payment address', which you're seeing on Yoroi and Daedalus combined with a 'staking address' (cardano-cli stake-address build ...). If you look at your receiving addresses on ...
user avatar
  • 158
2 votes

Is there a way to look up for a new payment address with a given payment address?

No, you would need a extended public key (xPub) for that. You can grab one (account xPub) from Daedalus or derive it using cardano-addresses.
user avatar
  • 477
2 votes
Accepted

Entropy problem in addresses generated by Daedalus wallet

This must be the Payment address from your wallet. It is your stake key. All your Payment addresses will have the stake key which shows up in all receive addresses of the wallet. Its nothing to do ...
user avatar
  • 1,784
2 votes
Accepted

How to obtain PubKeyHash from Address ShelleyAddr

There is now the function shelleyPayAddrToPlutusPubKHash in cardano-api which returns Maybe PubKeyHash because in the case of a script credential there is no corresponding public key hash.
user avatar
  • 36
2 votes
Accepted

How to get PubKeyHash of an address without vkey?

You can see the CDDL spec for full details: https://github.com/input-output-hk/cardano-ledger/blob/master/eras/shelley/test-suite/cddl-files/shelley.cddl In the case of a payment base address (the ...
user avatar
2 votes
Accepted

Nami wallet address format to addr_test1 format

Also you can use Cardano Serialization Lib https://github.com/Emurgo/cardano-serialization-lib with the class Adress and the method Address.toBech32() : let HexAddress = "...
user avatar
2 votes
Accepted

Transactions without input addresses

I believe the issue boils down to the fact, that "the wallet does not maintain a complete ledger but only a subset narrowed down to the assets belonging to the wallet" (see https://github....
user avatar
  • 939
2 votes

Difference when building Testnet and Mainnet addresses

If you are using cardano-cli to build the address(es), the only difference would be in specifying which network (mainnet or testnet) the address is for. This is done via the --mainnet & --testnet-...
user avatar
  • 2,961

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