Bitcoin Forum
June 16, 2024, 04:28:44 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / How to configure inbound/outbound connections of bitcoind ? on: December 26, 2018, 10:15:50 AM
Hello, community.

I am facing bitcoin configuration issues. What I need is to configure bitcoind (which is running as node) somehow to accept blocks only from my list of trusted nodes. At the same time I want to allow any other node of bitcoin network to download blocks from my node. I am thinking about my node as some kind of proxy_layer.
Is it even possible for current bitcoin codebase/bitcoin features?
I am also curious wether it is possible for old bitcoin codebase (let say bitcoin version 0.7 or 0.8)
2  Bitcoin / Development & Technical Discussion / Re: [base58] PUBKEY_ADDRESS has to contain prefix Mo and address length 35 on: May 20, 2018, 09:52:48 PM
In order to get a base-58 address with 35 characters starting with "Mo", you must encode a value between 09f5d59d241b1a2e29a5bec083bc33dfea4958764a7400000000 and 09f851d46fbe4f5a1f35605f646ccaa18178534efbadffffffff (hex). Note that these are 26 bytes long and don't fit the standard version byte + 20 bytes + 4-byte checksum format. The simplest fix would probably be to extend the version byte to two bytes with a value of 09f6 or 09f7 (hex).

Likewise, "Ro" would require a value between 0df5be9adec4aced5ccdda721feed36f39e50d3383cc00000000 and 0df83ad22a67e219525d7c11009f6a30d114080c3505ffffffff (hex), or a 2-byte version with value of 0df6 or 0df7 (hex).

Note:

I computed the "Mo" range as (20x58+46) x 5833 to (20x58+46+1) x 5833 - 1
and the "Ro" range as  (24x58+46) x 5833 to (24x58+46+1) x 5833 - 1
Maybe I don't follow you but in case I do follow, is it enough to put here 9(09 hex) and 247(f6 hex)?
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(9,247);
?
3  Bitcoin / Development & Technical Discussion / [base58] PUBKEY_ADDRESS has to contain prefix Mo and address length 35 on: May 19, 2018, 09:42:09 PM
I read from Bitcoin wiki https://en.bitcoin.it/wiki/List_of_address_prefixes about address prefix which is in most cases just single version byte. There are even basic examples.
What I want to know is how to get address which starts with ĞMoğ or Ro with address length 35 bytes?
What I have to put in PUBKEY_ADDRESS from chainparams.cpp (https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp) to achieve this?
4  Bitcoin / Project Development / Re: How to confirm that bitcoins have been transferred? (Android Bitcoin Game) on: March 23, 2017, 04:12:33 PM
You should check whether the transaction has been confirmed, i.e. it has been included in a block.

Most wallets that you would use for this will tell you whether the transaction has been confirmed and how many confirmations it has.

So my application has to connect to android btc walelt?
For example https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=en
Still few questions:
1. Where my app can get Transaction ID to check its status? (I suppose only manual enter by user).
2. I am not sure that there is programming interface in this wallet to interact with another apps. My goal is to get payment confirmation programatically.
5  Bitcoin / Project Development / How to confirm that bitcoins have been transferred? (Android Bitcoin Game) on: March 23, 2017, 03:52:41 PM
Hello, Bitcoin community. I am developing an android application using Unity Engine.
There are in-app purchases inside this application (items, gamepoints) that user would buy for the btc.
I have few questions about payment confirmations. Let's say I can generate link similar to "bitcoin://12A1MyaddResshRAZEqofac5jCQQjwEPBu?amount=1.00" to parse it by any android btc wallet. But how to get a confirmation that payment has been sent/received? How to make this confirmation safe and secure?
Maybe another approach?
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!