Bitcoin Forum
May 25, 2025, 04:43:10 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 »
41  Other / Meta / Re: [Voting 2024] Bitcoin Pumpkin Day on Bitcointalk 🎃 on: November 15, 2024, 08:10:13 AM
Code:
I vote for: #85, #100, #43, #49, #50
42  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#22)! on: November 13, 2024, 09:32:59 PM
59 - bestcoin_59

Thanks
43  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#21)! on: November 04, 2024, 09:56:25 PM
69 - bestcoin_59
Thanks for the raffle:)
44  Economy / Collectibles / Re: [FREE RAFFLE] GADGETS FROM PLAN B LUGANO on: October 30, 2024, 03:56:27 PM
46 - bestcoin_59
Thanks
45  Economy / Collectibles / Re: Stolen / missing items overview on: October 22, 2024, 08:29:01 PM
After some discussion with some other members, I have expanded the flags on the collectibles tracker by having a dedicated page for them: https://collectible.money/flagged

This will list out scams, compromised, and lost/stolen items in a single place - hopefully, this also helps with search engine visibility so that someone who does come across a lost/stolen item has a higher chance of figuring it out.

Previously, seeing a flag required you to visit the exact pages affected by that item/series - you had to know what you were looking for, which isn't great for people trying to get an overview of lost/stolen items or determine if the one they have is one of them by checking a list.

As always, if you have any more items that should be marked as lost/stolen, drop me a PM or email and I'll take care of it.

Hello,

What a great idea. Would mind adding my stolen item? Thanks in advance:)
46  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#20)! on: October 20, 2024, 12:45:39 PM
80 - bestcoin_59
Thanks
47  Bitcoin / Development & Technical Discussion / Re: PY21 - A simple BIP39 mnemonic generator in PYTHON on: October 05, 2024, 01:53:07 PM
Just wondering; can someone explains why this
Code:
# entropy
from secrets import choice
entropy = ""
for _ in range(128):
    entropy += choice(['0','1'])
print (entropy)
is bad...if it is...And why the code given by the others members are better (if they are).

Thanks:)
48  Bitcoin / Development & Technical Discussion / Re: PY21 - A simple BIP39 mnemonic generator in PYTHON on: October 05, 2024, 06:55:30 AM


12 words

Code:
from secrets import token_hex, choice
from hashlib import sha256, sha3_256, blake2b
from ecdsa import SECP256k1, SigningKey

def read_wordlist(file_path):
    try:
        with open(file_path, "r") as bip39_wordlist_file:
            return bip39_wordlist_file.read().split('\n')
    except FileNotFoundError:
        print("Error: bip39_wordlist.txt not found.")
        exit(1)

def entropy_words(wordlist):
    random_words = [choice(wordlist) for _ in range(12)]
    phrase = ' '.join(random_words)
    hash_algorithms = [sha256, sha3_256, blake2b]
    chosen_hash = choice(hash_algorithms)
    salt = token_hex(16)
    phrase_hash = chosen_hash((phrase + salt).encode()).hexdigest()
    entropy_bits = bin(int(phrase_hash, 16))[2:].zfill(256)
    return entropy_bits

def random_point():
    sk = SigningKey.generate(curve=SECP256k1)
    vk = sk.verifying_key
    point = vk.to_string().hex()
    hash_algorithms = [sha256, sha3_256, blake2b]
    chosen_hash = choice(hash_algorithms)
    salt = token_hex(16)
    point_hash = chosen_hash((point + salt).encode()).hexdigest()
    entropy_bits = bin(int(point_hash, 16))[2:].zfill(256)
    return entropy_bits

def generate_entropy():
    entropy_sources = [
        bin(int(token_hex(32), 16))[2:],
        entropy_words(bip39_wordlist),
        random_point()
    ]
    entropy = ''.join(entropy_sources)
    while len(entropy) < 256:
        entropy_sources = [
            bin(int(token_hex(32), 16))[2:],
            entropy_words(bip39_wordlist),
            random_point()
        ]
        entropy += ''.join(entropy_sources)
    return entropy[-256:]

def checksum(entropy):
    hash_algorithms = [sha256, sha3_256, blake2b]
    chosen_hash = choice(hash_algorithms)
    salt = token_hex(16)
    sha256_hex = chosen_hash((bytes.fromhex(hex(int(entropy, 2))[2:].zfill(64)) + salt.encode())).hexdigest()
    sha256_bin = bin(int(sha256_hex, 16))[2:].zfill(256)
    return sha256_bin[0:8]

def generate_mnemonic(entropy, checksum, wordlist):
    final = entropy + checksum
    num_of_words = 12
    word_length = len(final) // num_of_words
    res = [final[idx:idx + word_length] for idx in range(0, len(final), word_length)]
   
    mnemonic = [wordlist[int(binary_place, 2) % len(wordlist)] for binary_place in res]
    return mnemonic

def entropy_percentage(entropy):
    num_ones = entropy.count('1')
    return (num_ones / 256) * 100


bip39_wordlist = read_wordlist("bip39_wordlist.txt")
entropy = generate_entropy()
checksum = checksum(entropy)
mnemonic = generate_mnemonic(entropy, checksum, bip39_wordlist)
entropy_percentage = entropy_percentage(entropy)

print('---------')
print('ENTROPY: ')
print('---------')
print(entropy)

print('\n-------------')   
print('BIP39 PHRASE: ')
print('-------------')
for w in range(0, len(mnemonic)):
    print(str(w+1) + ': ' + mnemonic[w])

print('\n-------------------')
print('ENTROPY PERCENTAGE:')
print('-------------------')
print(f'{entropy_percentage:.2f}%')

Still, it looks as if given an entropy, the mnemonic generated doesn't match the one provided by Ian Coleman on his website...
49  Bitcoin / Development & Technical Discussion / Re: PY21 - A simple BIP39 mnemonic generator in PYTHON on: October 04, 2024, 07:46:36 PM
It’s true, now the three of them combine.
Ok:)
50  Bitcoin / Development & Technical Discussion / Re: PY21 - A simple BIP39 mnemonic generator in PYTHON on: October 04, 2024, 05:02:18 PM
Interesting code.
You assume you have a better entropy source when you randomly choose one from three random
entropy source. But is it really the case?

Moreover, i don't get:
Code:
   choice(entropy_sources)
if you don't store the result of the function.
Do you mean:

Code:
   entropy_sources=choice(entropy_sources)

Cheers
51  Bitcoin / Development & Technical Discussion / Re: PY21 - A simple BIP39 mnemonic generator in PYTHON on: October 02, 2024, 03:19:23 PM
Hello,

Thanks for the experimentation. Although it may not be a huge improvement,
i think it might be more natural to replace:

Code:
# entropy
entropy = bin(int(token_hex(16), 16))[2:]
while len(entropy) != 128:
    entropy = bin(int(token_hex(16), 16))[2:]

with
Code:
# entropy
entropy = ""
for i in range(128):
    entropy += bin(int(token_hex(1), 16))[-1]

Cheers
52  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#19)! on: September 30, 2024, 03:09:13 PM
59 - bestcoin_59
Thanks
53  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#18)! on: September 23, 2024, 10:01:30 AM
59 - bestcoin_59
Thanks
54  Economy / Collectibles / Re: [AUCTION - 3 Lots] 2x Icarus Cards 1x LEALANA Coin on: September 22, 2024, 07:31:28 AM
winners:

Lot 1 0.003BTC
Lot 2 0.003BTC

Lot 3 .0035

@TaxAttorneyCPA unfortunately i could not follow the auction live, but why are there 2 bids in a row from you, was one of them deleted by another bidder?



I thought i might have won since the bids placed after mine are illegals, and does not respect the rules.
55  Economy / Collectibles / Re: [AUCTION - 3 Lots] 2x Icarus Cards 1x LEALANA Coin on: September 21, 2024, 08:35:10 PM
Lot 3 - 0.0015 BTC
56  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#17)! on: September 09, 2024, 05:20:38 PM
59 - bestcoin_59
Thanks
57  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#16)! on: August 18, 2024, 09:47:02 PM
69 - bestcoin_59

Thanks for the raffle.
58  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#15)! on: July 31, 2024, 04:11:30 PM
59 - bestcoin_59

Thanks
59  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#14)! on: July 19, 2024, 10:20:47 AM
59 - bestcoin_59
Thanks
60  Economy / Collectibles / Re: [FREE RAFFLE] - Custom eXch Cryptosteel Capsule (#13)! on: June 19, 2024, 07:52:24 PM
59 - bestcoin_59

Thanks
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!