Why does this code keeping giving me this error? I am just trying to understand the raw bitcoin protocol

import random  def privateCeiToWif(Cei_hex) :      return utils.base58CheckEncode(0x80, Cei_hex.decode('hex'))  def privateCeiTopublicCei(s) : # secp256k1 : Standards for Efficient Cryptography (SEC)(Certicom Research) refers to the parameters of the ECDSA curve     Signature = ecdsa.SigningCei.from_string(s.decode('hex'), curve = ecdsa.SECP256k1)     verification = Signature.verifying_Cei     return ('' + Signature.verifying_Cei.to_string()) .encode('hex')  def pubCeiToaddr(s) :     ripemd160 = hashlib.new('ripemd160')     ripemd160.update(hashlib.sha256(s.decode('hex')).digest())     return utils.base58CheckEncode(0, ripemd160.digest())  def CeiToaddr (s) :     return pubCeiToaddr(privateCeiTopublicCei(s))  #WARNING :  This random function is not secure private_Cei = ' '.join(['%x ' %random.randrange(16) for x  in range(0, 64)]) print CeiUtils.privateCeiToWif(private_Cei) print CeiUtils.CeiToaddr(private_Cei) 

error message ceiutils

Recent Questions – Bitcoin Stack Exchange

ALERT: Apple just approved two more scam wallets, please help reporting them

These are the two scam wallets, with the publisher listed as "Bit Coin". Please alert Apple, stay away, and do NOT download. These follow the same trends as all the previous scam wallets that Apple had approved and then taken down a few days later

Do NOT download these, they're most likely designed to steal Bitcoin.

Ocean – Bitcoin Wallet by Bit Coin https://appsto.re/us/5rBtfb.i

AlphaWallet – Bitcoin Wallet by Bit Coin https://appsto.re/us/xCrvfb.i

submitted by /u/Logical007
[link] [comments]
Bitcoin

I just calculated the bitcoin market cap in the peak of December 2013 and in the peak of June 2016 in euros and the marketcap actually was higher in June 2016.

This comes a little bit late, but here it is. The euro is the second largest currency in the world and I haven't read anything about it, which is not surprising because all the market cap charts are displayed in USD.

So here's the Math:

  • Peak euro price Mt.Gox in euros in december 2013: €899.
  • Amount of bitcoins in circulation at that time: 12.076.000
  • Total market cap €10.856.000.000

and

  • Peak euro price Kraken in euros in june 2016: €696.
  • Amount of bitcoins in circulation at that time: 15.661.000
  • Total market cap €10.900.000.000

The real milestone is if we break the record high of the major currencies of a bitcoin, but this is quite the milestone and worth mentioning.

submitted by /u/moonbux
[link] [comments]
Bitcoin

Your money is already just numbers in somebody’s computer, the only question you have to ask yourself, who’s computer?

A lot of people struggle to understand bitcoin, because it's "digital", without recognizing the simple fact that nearly all money today is digital. Virtually all of our money today is just numbers stored in a database on someone else's computer.

However, there are important distinctions between having your money represented on a computer owned by a bank or stored on a tens of thousands of computers worldwide in a cryptographically secured peer-to-peer network.

Your digital money at a bank can be frozen, stolen, blocked, hacked, and devalued. You cannot do anything with your digital money stored at a bank without permission from the bank that controls it and under the scrutiny and whim of the state. Your funds can be blocked, confiscated and, most certainly, tracked and reported to the government.

Your digital funds on the blockchain suffer from none of these issues, with the only legitimate concern being that the value can fluctuate substantially on a daily basis.

This works out to a simple cost/benefit calculation for your personal risk tolerance.

Savings in bitcoin are likely, on average, to increase in value over time. Savings in fiat are 100℅ guaranteed by design to be worth less over time.

I just thought I would share this as a gentle reminder any time someone claims bitcoin isn't "real" because it's just numbers on a computer.

submitted by /u/jratcliff63367
[link] [comments]
Bitcoin

I just calculated the bitcoin market cap in the peak of December 2013 and in the peak of June 2016 in euros and the marketcap actually was higher in June 2016. (reddit.com)

This comes a little bit late, but here it is. The euro is the second largest currency in the world and I haven’t read anything about it, which is not surprising because all the market cap charts are displayed in USD. So here’s the Math: Peak euro price Mt.Gox in euros in december 2013: €899. Amount of bitcoins in circulation at that time: 12.076.000 Total market cap €10.856.000.000 and Peak euro price Kraken in euros in june 2016: €696. Amount of bitcoins in circulation at that time: 15….

Bitcoin

ALERT: Another scam wallet just got added to iOS app store today. PLEASE help by reporting if you have contacts at Apple

This is the scam wallet, do NOT download it as it follows the trends of previous scam wallets and it almost certainly is designed to steal Bitcoin.

Just two days ago a similar scam wallet was taken down.

Please report this wallet, DO NOT DOWNLOAD

Bitcoin Wallet – Secure Offline Btc Wallet by Chain Tech https://appsto.re/us/jhLjfb.i

submitted by /u/Logical007
[link] [comments]
Bitcoin

Thanks to the Bitcoin community (useless post, just feeling) (reddit.com)

https://www.youtube.com/watch?v=K2ku1A5Ox8U I had this link in my bookmarks. My favorite song, as this is linked to a lot of hope and disappointment for myself and probably for some people. I feel old in the Bitcoin community 🙂 Thanks to the Bitcoin community for all these intense emotions over the year! The main hope is not that the price will increase, but that emotions will continue to flow.

Bitcoin