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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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-...
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 --...
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/...
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 ...
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 ...
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 ...
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 <<< ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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.
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 ...
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 = "...
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....
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-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
address × 50wallet × 19
cardano-address × 14
plutus × 6
cardano-cli × 6
public-key × 5
python × 5
staking × 4
testnet × 4
yoroi × 4
private-key × 4
bech32 × 4
transaction × 3
api × 3
smart-contract × 2
daedalus × 2
nami-wallet × 2
cardano-serialization-lib × 2
payment × 2
privacy × 2
nami × 2
nft × 1
cardano-node × 1
ada × 1
decentralized-applications × 1