Search content
Sort by

Showing 16 of 16 results by I_love_Crypto
Post
Topic
Board Altcoin Discussion
Re: Non custodial staking
by
I_love_Crypto
on 09/06/2024, 14:35:42 UTC
Hello,

Thanks for everybody inputs. I'm aware that i'm not going to be rich easily with staking but my aim is to have a better
understanding of the concept. I like learning:)
ETH is my favorite alt, but i don't mind staking others. Btw, why rewards differ greatly on alt? Indeed, i never seen
a decent reward with BTC staking...

Software and navigator plugins seem indeed easy to use and might be the best solution to start earning,
but they are "black" boxes to me. Ten years ago, i enjoyed mining BTC with a RaspberryPi 1 and 4 USB
asic miners...Those were the days:)

Noncustodial staking can be pretty easy. Details vary between cryptos, following is how it works in Blacknet, and it also should help with understanding in general.

Solo staking requires to run your own full node and hold some amount in the wallet. Check hardware requirements and install the computer program. Of course, periodically look for updates and that everything is OK.

Leasing to pool is the easiest way, but doesn't promote the decentralization of network. Basically, it requires only a lightweight wallet. We used to have a few pools, but at the moment there's none public.

Operating pool is an option too, however our stakepool software is not beginner-friendly.

I have a few questions. Would i have to download the whole blockchain to do solo staking? Also, why leasing to pool is
different from non custodial staking like blacknet? And more generally i would be interested to better understand the differences of these four concepts (non custodial staking, solo staking, leasing to pool and operating pool...

Thanks a lot:)
Post
Topic
Board Altcoin Discussion
Topic OP
Non custodial staking
by
I_love_Crypto
on 30/05/2024, 10:12:24 UTC
Hello everyone,

I heard that it is possible to stake with my own wallet.
This seems to provide you the best of two worlds: you
keep control of your funds and you earn rewards with
them. That being said, the only info i can get on this
is: "Non-custodial staking is more complicated and requires
technical skills and blockchain knowledge that is beyond
most beginners".

Can someone elaborate or give a link for a better
understanding?

Thanks a lot:)
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 09/05/2024, 10:25:39 UTC
Edit: Please do not use anything that can be easily determined as seed when you're trying to generate something random. Use the secrets module, and if you're unsure about how exactly CSPRNG should be implemented, don't touch it or you might inadvertently generate something insecure.

If you're unsure about the technicalities behind generating a Bitcoin address, you should also refrain from implementing your own. Any errors can result in you being unable to access your funds.

Ok, i still need to have a better understanding of this (for my knowledge). Indeed, for me a random number from a computer is always pseudo-random. I found a link that might help me:
https://docs.python.org/3.8/library/secrets.html


Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 09/05/2024, 10:17:52 UTC
The Python code is extremely simple and since it is from:
https://github.com/trezor/python-mnemonic
i assumed (wrongly?) that it is the way Trezor wallets generate their Bip39 mnemonic:
>>>from mnemonic import Mnemonic
>>>mnemo = Mnemonic("english")
>>>words = mnemo.generate(strength=128)
>>>print(words)

Is it safe to use?

Thanks:)
The code is from: https://github.com/trezor/python-mnemonic/blob/master/src/mnemonic/mnemonic.py.

Looks okay to me, but I'm not exactly a security researcher. Your code looks okay assuming that the code is working as intended.

It seems to do the job as i get a 12 words list...
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 09/05/2024, 10:10:11 UTC

Mate, first of all, remember that Ledger wallet is the worst idea because this company is shady, they were telling us that it was impossible to get data from their secure chip but then they offered Ledger Recovery service that in fact gets data from their secure chip. I wouldn't trust them after this accident and if you are aiming for hardware wallet, you better buy Coldcard or Passport.

I don't think they did it on purpose, but i agree it is unacceptable. Also, their customer details has been hacked...
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 09/05/2024, 09:57:09 UTC

Any though?

Thanks a lot.

Electrum generated  SEED phrases are safe but not applicable  to other wallets. Thus, if  I were in your case I would  generate  BIP39 SEED phrase  manually without recourse to any wallet by simply using flipping coins or dice methods. Good tutorial on how to do this with dice you may find here.
The link is very interesting indeed. Here is a script:
import random
from datetime import datetime
random.seed(datetime.now().timestamp())
T=[]
for i in range(127):
        x=random.random()
        if x<0.5:
              T.append(0)
        else:
              T.append(1)
print(T)

Not sure if it is better than the previous method though...
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 09/05/2024, 09:44:20 UTC
I haven't seen the code yet and I can't comment much on it. I would recommend just using another wallet that generates BIP39 instead of going with a less well-known script, or just go with Electrum. No downsides there.

The Python code is extremely simple and since it is from:
https://github.com/trezor/python-mnemonic
i assumed (wrongly?) that it is the way Trezor wallets generate their Bip39 mnemonic:
>>>from mnemonic import Mnemonic
>>>mnemo = Mnemonic("english")
>>>words = mnemo.generate(strength=128)
>>>print(words)

Is it safe to use?

Thanks:)
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 08/05/2024, 19:54:44 UTC
Ok, thanks for the answers. So, to sum-up here is my plan:

1) Generate (and carefully save) a BIP39 mnemonic code (offline) using this:
https://github.com/trezor/python-mnemonic
Indeed, Electrum wallet doesn't generate Bip39 mnemonic and i would prefer
to have one.
I tested the few lines of code and it worked.
Still there is something i don't understand:
entropy = mnemo.to_entropy(words)
I guess the aim of this line is to check the randomness of the list of words.
However, i got this:
>>> entropy = mnemo.to_entropy(words)
>>> entropy
bytearray(b'\x18\xe2\xa9=\x82\xd4$\x915D\x98....................................\xb4\x7f\x02\x90f\xdf\x8b')
>>>
How this should be understood?

P.S.: I read that a 12 words list is enough and a 24 words list do not improve safety. So i will
go for a 12 words list.

2) Create a new (offline) wallet by importing the mnemonic into Electrum. Generate a "receiving" address

3) Send the BTC from the exchanges to this address.

Am i doing something wrong?

Cheers:)
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 08/05/2024, 17:27:48 UTC
One of the importance of seed phrase is the ease to back one’s wallets without having to store the master private key or any key at all. I get where you’re concerned about, like electrum not been in existence again, currently there is a BlueWallet that is said to support the custom seed phrase from electrum wallet.

But aside that should they stop to build/develop the wallet again, another developer could easily build it up since its source codes are open.

But also if at a time there is no wallet that supports the seed phrase, you can still generate the master private key from the seed phrase using tools because the method it uses to generate its seed is not that different from the Bip39 seed phrase. So there is nothing to worry about

I agree, but it could be stressful. My aim is to choose the easiest and the safest solution to store BTC. Btw, is it possible to convert a Bip39 seed phrase into an Electrum seed and vice versa?

Cheers:)
Post
Topic
Board Development & Technical Discussion
Re: Which seed should i choose?
by
I_love_Crypto
on 08/05/2024, 17:21:44 UTC
The good thing about anything open source is that it is easy for everything to be replicated and backwards compatibility is hardly an issue. Besides, it is highly unlikely that backwards compatibility would be broken with any well-defined standards. BIP39 is considered a Bitcoin standard and it is likely that it would be supported by wallets far in the future.

I hope so too...

Storing it in anything other than mnemonics is a hassle and highly unnecessary if you're concerned about compatibility; you'll be able to recover them easily even if they are not supported by Electrum in the future.

But, in that case you should know which derivation path the software used in order to recover the address where the funds are located, aren't you?
Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Topic OP
Which seed should i choose?
by
I_love_Crypto
on 08/05/2024, 11:54:13 UTC
⭐ Merited by ABCbits (2)
Hello everyone:)

I own some BTC that are stored ATM in an exchange (yes, i know it is bad....).
I would like to store them offline for the very very long term. My aim would be to
create a brand new wallet, with for instance Electrum, and move the funds
into it. Since the Electrum Software would be installed on a Ubuntu live session,
i only plan to carefully write the seed on a piece of paper (or better engrave
the seed on steel) before leaving. That being said, i noticed that Electrum
said that BIP39 seed might no longer be supported in the future, and, one the other hand, if i
create an Electrum seed it might not be accepted on other devices. Since my
aim is obviously to have access to my BTC later, i'm puzzled. How can i predidict the
standards in ten years?

Perhaps saving the master private key as a QR code might be a better idea...

I know that a ledger wallet might be better, but i read that the code source is not
open and i'm concerned about the data that might be collected by them (who knows
if they don't keep information about all the transactions of their users).

Any though?

Thanks a lot.
Post
Topic
Board Development & Technical Discussion
Re: How to list all the funded address from a HD wallet?
by
I_love_Crypto
on 19/01/2024, 10:23:09 UTC
What is the address type? Have you tried to import the seed into a wallet such as electrum? If you do that, it should list all addresses for you.

First of all, thanks for your suggestion, i appreciate.
Yes indeed, works like a charm. Got the addresses with transactions. It turns out that the derivation path
is m/84h/0h/0h. First time i use Electrum, i'm impressed. I tried to figure out the advantages and disadvantage
of Electrum vs Ledger. Someone mention "security":
https://www.bitdegree.org/crypto-wallet-comparison/ledger-nano-x-vs-electrum
is this a reality or a myth?
Might not work in the future:
"BIP39 seeds do not include a version number, which compromises compatibility with future software. We do not guarantee that BIP39 imports will always be supported in Electrum."
Post
Topic
Board Development & Technical Discussion
Re: How to list all the funded address from a HD wallet?
by
I_love_Crypto
on 19/01/2024, 10:12:42 UTC
Here are the modifications i made:

I changed:

import bip_utils

instead of

import bip32utils

and

root_key = bip_utils.BIP84Key.fromEntropy(seed)

instead of

root_key = bip32utils.BIP32Key.fromEntropy(seed)

but that doesn't work: AttributeError: module 'bip_utils' has no attribute 'BIP84Key'

Any ideas? Thanks a lot, i appreciate your help:)
Post
Topic
Board Development & Technical Discussion
Re: How to list all the funded address from a HD wallet?
by
I_love_Crypto
on 19/01/2024, 08:39:28 UTC
Then i made a copy of the 12 words mnemonic from the blockchain account.
-snip-
So my question is: how to get a list of the address corresponding to non zero balance from the seed of a HD wallet?
You mean Blockchain's online wallet?
They use standard derivation paths of BIP44 for legacy and BIP84 for SegWit HD wallets.
Here's info about the paths: bip-0044 | bip-0084

And if you created a second or third "private key wallet" (not address), you'll need to modify the derivation path's account_index accordingly.

Yes, indeed. And now i know that it is a SegWit HD wallets. I have to modify the script above...

Thanks.
Post
Topic
Board Development & Technical Discussion
Re: How to list all the funded address from a HD wallet?
by
I_love_Crypto
on 19/01/2024, 08:27:40 UTC
What is the address type? Have you tried to import the seed into a wallet such as electrum? If you do that, it should list all addresses for you.

First of all, thanks for your suggestion, i appreciate.
Yes indeed, works like a charm. Got the addresses with transactions. It turns out that the derivation path
is m/84h/0h/0h. First time i use Electrum, i'm impressed. I tried to figure out the advantages and disadvantage
of Electrum vs Ledger. Someone mention "security":
https://www.bitdegree.org/crypto-wallet-comparison/ledger-nano-x-vs-electrum
is this a reality or a myth?
Post
Topic
Board Development & Technical Discussion
Topic OP
How to list all the funded address from a HD wallet?
by
I_love_Crypto
on 18/01/2024, 19:21:27 UTC
Hello Everyone,

My question will probably seem stupid, and i apologize for this but there is something i would like to understand.

I opened a blockchain.com wallet and funded it. I made some transactions with it, and today the balance is 0.0001 BTC. So far so good.
Then i made a copy of the 12 words mnemonic from the blockchain account.

To have a better understanding how HD wallet works, i installed the Python bitcoinlib library using pip
on my computer. Unfortunately it says: no transaction and list some addresses with no balance...

Today i used another Python script:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
from mnemonic import Mnemonic
import bip32utils

words="w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12"
mnemon.check(words)
seed = mnemon.to_seed(words)
print(f'BIP39 Seed: {seed.hex()}\n')

root_key = bip32utils.BIP32Key.fromEntropy(seed)
root_address = root_key.Address()
root_public_hex = root_key.PublicKey().hex()
root_private_wif = root_key.WalletImportFormat()
print('Root key:')
print(f'\tAddress: {root_address}')
print(f'\tPublic : {root_public_hex}')
print(f'\tPrivate: {root_private_wif}\n')
for i in range(10):
   for j in range(10):
      child_key = root_key.ChildKey(i).ChildKey(j)
      child_address = child_key.Address()
      child_public_hex = child_key.PublicKey().hex()
      child_private_wif = child_key.WalletImportFormat()
      print(f'Child key m/{i}/{j}:')
      print(f'\tAddress: {child_address}')
      print(f'\tPublic : {child_public_hex}')
      print(f'\tPrivate: {child_private_wif}\n')
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
I checked the balance of the Child key m/0/0, m/0/1, m/1/0,  m/1/1... They all have a zero balance Sad

So my question is: how to get a list of the address corresponding to non zero balance from the seed of a HD wallet?

Thanks a lot:)




I