bitcoin

Python 2.7 Converting Bitcoin Privkey into WIF Privkey

落花浮王杯 提交于 2019-12-12 13:02:02
问题 I just went through a tutorial as a coding newbie. The tutorial was this one: https://www.youtube.com/watch?v=tX-XokHf_nI. And I wanted to generate my Bitcoin addresses/privkeys with 1 single easy to read (not cryptic) Python file - just in the style the code is written right now. The tutorial got to the part where I got the Bitcoin address starting with a "1" but not the privkey starting with a "5". Plus I am missing how to BIP38 encrypt the private key (starting with a "6"). It's as you can

How to check Bitcoin address balance from my application?

眉间皱痕 提交于 2019-12-12 09:42:28
问题 How do I check a balance of a Bitcoin address (any, not necessarily mine), let's say in a Java application (or any other language)? I need a functionality like the one on blockchain.info or biteasy.com but I don't want to use their API. Bitcoin is open source, so I thought maybe it won't be so difficult to get the data myself? 回答1: Use blockexplorer.com model and piggy back off their server or run your own using open source version at github.com/lirazsiri/blockexplorer 回答2: For now there is

Simple translation from bash to perl - Bitcoin private key import format

一曲冷凌霜 提交于 2019-12-11 18:11:05
问题 I'm working on a Bitcoin brain wallet generator in Perl. I wasn't able to make the last step correctly (base58 encode) to generate the private key (import format). I have found a very simple bash script that does the job, and I will like to have it translated to Perl so I can make the key generation entirely on Perl. Can someone help me to translate the following bash code to a Perl sub? #!/bin/bash base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z}) bc <<<"ibase=16; n=${1^^}; while(n>0) { n

HttpWebResponse contentLength always -1

旧城冷巷雨未停 提交于 2019-12-11 12:17:51
问题 My web response content length always seem to be -1 after my web request. I'm sure you massage and signature are right. What am I doing wrong here? string msg = string.Format("{0}{1}{2}", nonce, clientId, apiKey); string signature = ByteArrayToString(SignHMACSHA256(apiSecret, StrinToByteArray(msg))).ToUpper(); const string endpoint = "https://www.bitstamp.net/api/balance/"; HttpWebRequest request = WebRequest.Create(endpoint) as HttpWebRequest; request.Proxy = null; request.Method = "POST";

Parsing Decoded JSON in PHP (blokchain API)

自古美人都是妖i 提交于 2019-12-11 07:37:11
问题 Hello I am trying to extract some info from a json format page The page is : https://blockchain.info/fr/rawaddr/1BQLNJtMDKmMZ4PyqVFfRuBNvoGhjigBKF this link allows to get all bitcoin transactions from an address. All the quotation marks confuse me, I can not see clearly I want to display everything like the original blockchain website Blockchain Display view The beginning will be something like that $json = file_get_contents("https://blockchain.info/fr/rawaddr

Reading an 8 byte integer in PHP (Bitcoin)

こ雲淡風輕ζ 提交于 2019-12-11 02:53:23
问题 I am trying to read the value from a Bitcoin transaction - https://en.bitcoin.it/wiki/Transaction The wiki says it is an 8 byte integer, but nothing I have tried with unpack gives me the right value as a decimal. I've been able to read everything else from the transaction except the values out the output - given the other fields I have managed to parse all line up with the correct values it appears I am reading the correct 8 bytes. With: $bin = hex2bin('00743ba40b000000'); $value = unpack(

electrum wallet jsonRPC authentication

拈花ヽ惹草 提交于 2019-12-11 02:32:33
问题 i am trying to use electrum rpc , it is giving me authentication error. i have tried user pass via Basic Authentication on Linux bash and via php but non of them works. My php code was working fine before plectrum vulnerability upgrade. also i have tried curl on bash , but i get same error Error code explanation: 401 - No permission -- see authorization schemes. I have tried curl --data-binary '{"id":"curltext","method":"listaddresses","params":{"funded":true}}' http://test:abc@127.0.0.1:7777

Intl.NumberFormat() does not show the Bitcoin Ƀ Symbol

冷暖自知 提交于 2019-12-11 01:14:52
问题 the Intl.NumberFormat does not show the bitcoin symbol. CFORMAT_USD = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'USD', minimumFractionDigits: 8 }); CFORMAT_BTC = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'BTC', minimumFractionDigits: 8 }); console.log(CFORMAT_USD.format(1000)); // 1.000,00000000 $ console.log(CFORMAT_BTC.format(1000)); // 1.000,00000000 BTC My workaround at the moment console.log(CFORMAT_BTC.format(1000).replace(/BTC/,'Ƀ')); // 1.000

Blockathon(2018)上海竞赛项目成果今天揭晓

家住魔仙堡 提交于 2019-12-11 01:06:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 开幕式现场 10月19日,Blockathon(2018)上海在黄浦区P2联合创业办公社举行,本次活动由50名区块链开发者组成9支参赛队伍,来自国内外优秀区块链开发团队的20名技术专家担任导师及裁判。9支队伍通过48小时的竞赛,于10月21日下午进行项目成果路演,角逐比赛奖杯。 Blockathon是全球性的区块链开发者竞赛,中国区的活动已经成功在北京和成都举办,本次上海站的比赛由bitfwd技术社区、HiBlock区块链社区以及区块链兄弟联合主办,邀请区块链技术爱好者进行小组竞赛,在48小时内完成一个区块链项目的开发交付。 区块链涵盖了推动信任和权力下放的新时代的技术,黑客马拉松是来自任何领域的人都可以聚集在一起并在特定时间框架内参与项目的活动。Blockathon通过将两者结合起来,组织现场包括分组、创意演示、开发培训、路演、评奖等多个环节。 HiBlock区块链社区合伙人王登辉主持开幕 在10月19日的开幕式现场,HiBlock区块链社区合伙人王登辉担任开幕式主持人,介绍整体活动,澳洲bitfwd开发者社区创始人Daniel、HiBlock区块链社区创始人Bob和区块链兄弟联合发起人方天叶对Blockathon(2018)上海站的活动进行开幕致辞,澳大利亚驻沪领事馆商务处商务领事 Dane

Bitcoind JSON-RPC : Java Jersey Client : Unexpected end of file from server Error

元气小坏坏 提交于 2019-12-08 09:00:56
问题 I am very new to bitcoin and this is my first experiment with bitcoind. We have been trying to develop an Java based application on BTC using bitcoind (using testnet). We are using simple HTTP Post using Jersey client with basic authentication like given below. We already have jersey client as part of project dependencies. We are running on Mac OS. The bitcoind and java client are hosted in the same system. Client client = Client.create(); String url = "http://"+username+':'+password+"