Bitcoin Forum
June 23, 2024, 09:35:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Bismuth rewards from testnet participation on: January 12, 2018, 10:57:39 AM
my address is 199a04ab4169547affa627f6b5e689a80e358a2da5dda4eb14aed64a
need verified

i love bismuth
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] Bismuth - Easy Integration, Endless Possibilities, Python, Testnet on: July 15, 2016, 05:26:03 AM
Code:
if db_address[0:diff] == txhash[0:diff]:  # simplified comparison, no backwards mining
  if float(time_now) > float(db_timestamp):
    reward = 25
    app_log.info("Mempool: Heureka, reward mined: " + str(reward))
  else:
    app_log.info("Mempool: Future mining not allowed")


 If the node is a different time, the time comparison is not meaningful
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] Bismuth - Easy Integration, Endless Possibilities, Python, Testnet on: July 14, 2016, 09:01:56 AM
Looks like signature verification was weak in several places, will release a hotfix soon


Any RSA-keys are all allowed a "transaction"

["transaction" : timestamp + ":" + yourAddress + ":" + myAddress + ":" + getAmount + ";" + signature_enc(MY RSA Key) + ";" + MY PublicKey]



The address verification is required
[address == hashlib.sha224(public_key_readable).hexdigest()]
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] Bismuth - Easy Integration, Endless Possibilities, Python, Testnet on: July 13, 2016, 02:49:09 AM
Not synchronized since 6225
5  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] Bismuth - Easy Integration, Endless Possibilities, Python, Testnet on: July 11, 2016, 09:09:55 AM
After receiving the wrong "blockfound_"
(block_height == 0)

"ledger.db" is broken

Thanks, never seen this issue before, what version are you running?
Do you have a log entry for that, please? And a copy of your blockchain if possible
I would love to know if you received it from my node, but it must be since there are no other nodes
I am still patiently waiting for someone to do the rollback hack before I fix it


from My TestCode
Quote
import hashlib
import sqlite3
import socket
import time
import base64
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA

# import keys
key = RSA.importKey(open('privkey.der').read())
public_key = key.publickey()
private_key_readable = str(key.exportKey())
public_key_readable = str(key.publickey().exportKey())
address = hashlib.sha224(public_key_readable).hexdigest()

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#s.settimeout(1)
s.connect(("0.0.0.0", int("2829")))
print "Connected"

#enter transaction start
conn = sqlite3.connect('ledger.db')
c = conn.cursor()

apiKey = 'blockfound_'
makeTimeStamp = 2.00
makeFromAddress = 'genesis'
makeToAddress = '07fb3a0e702f0eec167f1fd7ad094dcb8bdd398c91999d59e4dcb475'
makeAmount = 1.1
makefee = 1.0
reward = 0

transaction = str(makeTimeStamp) + ":" + str(makeFromAddress) +":" + str(makeToAddress) +":"+ str(makeAmount)

h = SHA.new(transaction)
signer = PKCS1_v1_5.new(key)
signature = signer.sign(h)
signature_enc = base64.b64encode(signature)
print "Client: Encoded Signature: "+str(signature_enc)


txhash_new = hashlib.sha224(str(transaction) + str(signature_enc) + str('BangC')).hexdigest()

c.execute("INSERT INTO transactions VALUES ('" + str(0) + "','" + str(
   makeTimeStamp) + "','" + str(makeFromAddress) + "','" + str(makeToAddress) + "','" + str(
   float(makeAmount)) + "','" + str(signature_enc) + "','" + str(
   public_key_readable) + "','" + str(txhash_new) + "','" + str(makefee) + "','" + str(
   reward) + "')")
c.execute("SELECT * FROM transactions WHERE block_height='" + str(
   0) + "'")
txhash_send = c.fetchone()
c.execute("delete FROM transactions WHERE block_height ='"  + str(0) + "'")

conn.commit()
conn.close()

s.sendall(apiKey)
time.sleep(0.1)
txhash_len = len(str(txhash_send))
while len(str(txhash_len)) != 10:
   txhash_len = "0" + str(txhash_len)
s.sendall(str(txhash_len))
time.sleep(0.1)
s.sendall(str(txhash_send))

6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] Bismuth - Easy Integration, Endless Possibilities, Python, Testnet on: July 11, 2016, 08:45:44 AM
After receiving the wrong "blockfound_"
(block_height == 0)

"ledger.db" is broken
7  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] Bismuth - Easy Integration, Endless Possibilities, Python, Testnet on: July 08, 2016, 12:41:53 PM
give me a little bismuth

199a04ab4169547affa627f6b5e689a80e358a2da5dda4eb14aed64a

I want to try
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!