Bitcoin Forum
August 12, 2022, 08:40:11 PM *
News: Latest Bitcoin Core release: 23.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Economy / Gambling / Say hello to Satoshi Dice, without the dice! on: July 03, 2017, 06:04:22 AM
Originally bit-chikun.com



From the creator of cryptoproof (me) comes a new social experiment, a platform where users are able to bet against one another directly without the need for a dice or third party event.

Victors are selected based on pure risk aversion, (highest deposit wins).

All transactions are 100% transparent thanks to the blockchain and all outcomes are available for viewing on the results page.

Trawl through previous wagers, look for repeat depositors, calculate average amounts and go fishing but watch out for sharks and whales!

website: cryptochikun.com  
source code: github.com/derrend/cryptochikun

Any problems or questions feel free to contact support at our sister site:
2  Economy / Services / [ANN] CRYPTOPROOF: CRYPTOGRAPHIC PROOF OF ASSOCIATION on: August 09, 2016, 03:13:12 AM
Try it out at cryptoproof.info

Summary:
Cryptographic Proof Of Association is a method of identification by which users who submit their bitcoin extended master public keys which comply to the BIP32 standard can have their identity inferred by checking if a subsequent address is a product (subkey) of that public key.

A very simple website with very big implications.

Our service is completely unique and was thought up not only promote the use of bitcoin as a tool for liberation but to also help protect consumers in the new world of 3D printed products which is just on the horizon.

Built from the ground up to be a trustless system, no user names, no passwords, no risk of theft from subkey addresses and no public keys written to disk which means no risk of subkey address exposure even if the site were to become compromised.

Accounts are verified on the back of https certificate authority providers and so no formal identification is required of any kind either.


**UPDATES

    cryptoproof.info
(source) # 19/08/2016

    Scanner app for Android available for testing here.
(source) # NOT COMPATIBLE WITH NEW API, NEEDS UPDATING.
    SHA256 Hash: a5db1ff1e601cb8cd2e80648b74e81ef60765e52e16382cb619548ecda4750e7  cryptoproof_scanner.apk

    Docker container for easy and secure local BIP32 key generation is available here.
(source)
    Docker container to easily decode encrypted strings for account verification is available here.
(source)
    Cryptoproof api tools (withd docker container option) for easy api interaction is available here.
(source) # 27/08/2016

    Massive site redesign and overhaul.
    Connections to cryptoproof.info encrypted using modern cypher suite TLS 1.2
    SSL/TLS Account verification implemented. (a https url is required to use this feature)
    Deposits and withdrawls implemented.
    Key management interface implemented.
    Subkey monitoring and hit statistics interface implemented.
    Webcam QR code scanner implemented.
    Search API implemented.

    Reddit
    3DHubs.com
    3DPrintingForum.org
    3DPrintForums.com

    Article: 16112015 The Bitcoin News

    During beta, accounts are limited to 100 subkeys.
    Current cost per key: $0.01 USD.

    First 10 subkeys are free of charge and require no credit or deposit. No strings attached.


**STILL TO COME

    Android app # COMPLETED 12/11/2015
    Multisig Support # ENABLED 26/11/2015
    Publicly auditable database # ENABLED 28/11/2015
    Key comments
    Recursive verification

    and more...



How it works:
CPOA is a concept made possible by the recent(ish) introduction of BIP32 functionality into cryptocurrencies like Bitcoin.

For those not in the know, BIP32 is a standard by which it is possible to create master private and public keys from which many 'baby' subkeys can be produced.

These subkeys are mathematically linked to one another so for example Bitcoins can be sent to a sub public key address generated by Alice who lives in the UK using the master public key but the funds can only be spent by Bob who lives in America and has the master private key.

This is clearly very useful but what else can we do with this?
We can use it for verification and ID!

Our idea is simple, businesses and individual people can register their master public key with our website which members of the public will be able to visit and confirm if a subkey they have been provided with belongs to the company/individual they believe it does.


Example use case:
In the future when you order an item from a vendor such as a cup or a toy it seems sensible to envision a scenario where rather than have the vendor mail it to you or send it by drone they instead send the blueprint to your 3D printer which produces the item instantly for you at home or maybe they print the item for you themselves and then physically send it but in either case how can you know that you purchased the item from the producer in question and not someone who ordered an item themselves, intercepted the blueprint or scanned the product which was delivered to them and just sold you a clone? (this is a huge problem in the pharmaceutical industry)

Cryptoproof solves this by providing a common location where vendors can register their bitcoin extended public keys allowing them to brand each item with a unique subkey address which cryptoproof can verify so that the consumer can know if a product originates from the producer that they think it does (by seeing if a verified account is associated with it) and if there is more than one copy of that item in existence (by seeing if/how many times that address has been submitted in the past).

Using bitcoin addresses for this purpose adds an extra dimension to the scenario because value can be transmitted to and from them which allows not only for verification but also can be used to keep an immutable record showing how much was paid for the item, who paid it and when the transaction took place.

This technology has the potential to save lives.

Another feature of this method is 'blockchain unburdening', the scanning and submitting of keys in this way does not involve the blockchain and will not contribute to any unnecessary bloat.

Bullets, condoms, electronic parts, photo ID (passports - drivers licenses), receipts, invoices, files (torrents - legal documents), pharmaceuticals, etc.
The list is endless.


More features and use cases:
Json api features:
Cryptoproof now sports a feature complete api allowing users to interface with the application programmatically. You can now automate your server and build applications of your own to interact with cryptoproof!

Subkey features (to name a few):
Cryptographic proof of association,
Associate yourself, your products and even your employees with your company or brand by issuing them with a unique subkey addresses/qr codes which can be verified with cryptoproof.info

Single use seals,
Let your customers know that their product came from a genuine supplier by providing them with a never before seen subkey address which they can verify for themselves. Useful for perishable products such as medication and food.

Counterfeit detection,
Give your customers the opportunity to gauge if their product has been counterfeited by periodically checking the associated subkey address for additional hits which they are not responsible for generating. Useful for 3D printed products.

Issuing authority,
Become an ID issuing authority and produce cryptographically verifiable proof of age and ID photo-cards at near zero cost. You could even use them as registration numbers for vehicles.

Subkey analytics,
Designate subkey indices for specific geographical regions and analyse the volume of hits to deduce the likelihood of fraud in each, for example.

Voting,
Designate even subkey indices to represent Donald Trump and odd indices to represent Hillary Clinton. Email the qr codes to your constituents and count up the scans without incuring transaction fees or bloating the bitcoin blockchain.

Security features:
Account verification,
Accounts are verified on the back of your websites SSL cert. A random string is encrypted with your certificate and once you submit the unencrypted version back to cryptoproof.info your account will become verified.

Funds,
The private key to release funds from your account is derived at login and is only accessible for the life of your session which means an attacker would not have access to your funds if the platform were to be compromised.

Trust features:
No trust required. Subkeys are derived from your extended public key, we never have access to the private components of your extended key or any of its derivatives.

Other features:
No blockchain bloat,
Cryptoproof does not impact the bitcoin blockchain.


API: # Refer to github repo for more details
Code:
https://cryptoproof.info/api/search
Code:
status : bool # true
message : dict
  compressed_address : str
  associated_url : str
  verified_status : bool
  hits : int
-
Code:
https://cryptoproof.info/api/url
Code:
status : bool # true
-
Code:
https://cryptoproof.info/api/verify
Code:
status : bool # true
-
Code:
https://cryptoproof.info/api/account
Code:
status : bool # true
message : dict
  deposit_address : str
  credit : decimal
  available_keys : int
  upper_index : int
  free_keys : int
  balance : decimal
  price : decimal
-
Code:
https://cryptoproof.info/api/login_history
Code:
status : bool # true
message : list
-
Code:
https://cryptoproof.info/api/subkey_activity
Code:
status : bool # true
message : list
-
Code:
https://cryptoproof.info/api/transaction_history
Code:
status : bool # true
message : list
-
Code:
https://cryptoproof.info/api/index
Code:
status : bool # true
-
Code:
https://cryptoproof.info/api/withdraw
Code:
status : bool # true
-
Code:
error
Code:
status : bool # false
message : str

Account setup and verification video tutorial:



cryptoproof_scanner app for Android



cryptoproof id card (front and back)



user pubkey dashboard (after registration)


subkey deposit address returning valid and registered to cryptoproof (because we issued it)


subkey instantiated by user existing in database


pubkey dashboard showing subkey hit



FAQ

Quote
Can you explain what this solves that public key certificates don't solve ?
In essence we log the number or hits each subkey receives and so provide an indication to the consumer as to whether their particular item is unique or not.

The consumer is also able to see at a glance who the registered vendor is without having to understand what an SSL certificate is and how to verify it's signature, we take care of that for them by getting the vendor to verify their identity in advance using the SSL certificate provided at the https url they own.

An added advantage to this is that value may be sent to this key because it is a valid address on the BTC network which is a feature the vendor may make use of if they wish.

Vendors are also able to monitor the number of hits each subkey has received which can be used for analytical reasons.
3  Economy / Investor-based games / This interesting website has turned a bitcoin faucet into a microeconomy on: June 12, 2016, 01:40:00 PM
Here is a wordpress article explaining how it works:
https://bitchikun.wordpress.com/2016/06/12/introducing-bit-chikun-com/

And here is a link to the website:
https://bit-chikun.com/

All feedback appreciated.
4  Economy / Gambling / Introducing BIT-CHIKUN.COM, worlds first bitcoin game which is also an ecosystem on: June 11, 2016, 10:08:14 PM
Translations:
ChineseMalayHindiSpanishRussian
ArabicBengaliPortugueseIndonesianFrench

Contact us:
Twitter- link
Website- https://bit-chikun.com/
Source- https://github.com/bit-chikun/chikun
Audit- https://blockchain.info/address/12LmXkeVmSL3nBrMMBCPcLw2Jt97G1W4gr




The first ever gambling website based purely on risk aversion, made possible by the emergence of cryptographic currencies.



About bit-chikun.com:
Inspired by Satoshi Nakamoto's example of what the global financial system would look like when occams razor is liberally applied (and Googles simplicity regarding their search page), we decided to re-examine the concept of gambling.

Commonly, when a wager is placed the outcome of that wager will depend on an event such as a coin toss, horse race, football game etc, but now thanks to the instantaneous and irreversible nature of crypto we can take occams razor (like Satoshi) to this situation and remove the third party event!




How bit-chikun.com works in a nutshell:
A user visits our website, generates a one time bitcoin deposit address and sends some BTC there.
This deposit is registered by our website and matched to another deposit completely at random.
A minimum deposit of 0.001 BTC is deposited by the site every 30 minutes to attract users.
The user who made the highest deposit (was less risk averse) wins the pot total and has all the BTC sent back to them! (the loser goes home empty handed).

or...

Imagine a worm wriggling in the sand, along come some hungry fish to prey on it but on arrival they see more of a meal in the other fish and try and eat them instead!
The site puts up a small stake to entice users to play, the stake is always the same value and is deposited at a regular interval (about every 30 minutes).
Opportunistic users put up a slightly higher stake in order to claim it (this is happening right now) which in turn incentivises other users to make ever higher stakes.




A word on security:
All of our sites traffic is processed using HTTPS 128-bit encryption for maximum privacy and security.

Also this shows that we have registered with a trustworthy certificate authority and can be identified/held accountable for any fraudulent activity were it to occur on our site.




Fees:
Minimum deposit amount is 0.001 BTC.
Deposits lower than the minimum will not be picked up or processed by our system and we will make no effort to return them.

We take a 2% vig from the losing deposit in each successful matching.

Example -
Alice deposits 10 BTC
Bob deposits 1 BTC

Alice’s' deposit is greater than Bobs so she gets her 10 BTC back plus 0.98 of Bobs BTC since we (bit-chikun) took 0.02 as a fee from Bobs deposit.




Deposit addresses:
Deposit addresses are single use only.




More on security:
Only the bare minimum amount of BTC is in our possession at any one time, deposits are typically held for one confirmation and then sent away.

When a deposit comparison is made and funds are sent, the inputs used are the exact same inputs that correspond to the deposit addresses which basically means that double spend attacks would be very difficult because if the attack was unsuccessful then the attackers funds would be processed as a legitimate bet (no harm done), if successful the attackers funds would evaporate from out wallet address and it would be like the deposit never happened (again, no harm done).
SatoshiDice employs a similar tactic apparently.

We require only 1 confirmation before a transaction becomes eligible to be processed so in a normal scenario you should not be without your bitcoins for more than 10minutes (average block discovery time regarding BTC).
We attempt to match your wager with other deposits in the system to a maximum of 3 confirmations at which point your funds are returned as we were unsuccessful in providing you with an opponent.




Transparency:
All successful interactions are published on our results page with links to the wallet addresses and transaction numbers. An index ID is also provided for easy identification should a problem ever arise.

The results page is searchable for IDs, addresses, deposit amounts and transaction identification numbers.

Double deposits and minimum amount  deposits are not displayed on the results page, in these cases your deposit address and transaction id and even the BTC address you sent it from can be used to identify your deposit and it will be easily viewable on the blockchain.




Return addresses:
Return addresses are supplied by users before making their deposits, bit-chikun.com takes no responsibility for funds returned to addresses outside of your control.




More info:
bit-chikun.com ltd's method for random database matching as a form of decision making regarding cryptographic currencies and their interactions or determining the nature of an interaction based purely on the risk aversion of the participants as opposed to the outcome of an event is protected by international copyright.
5  Bitcoin / Bitcoin Discussion / The bit-chikun.com bitcoin experiment just got spicy with FREE BTC!! (sort of) on: June 10, 2016, 07:38:51 AM
Link to bit-chikun: 
https://bit-chikun.com/

Please check the previous thread before posting question or security concerns to avoid double posting (links below).

Every 30 minutes-ish I'm goin to be depositing 0.001 BTC into bit-chikun from the vig address, (I've already made several), if you want it all you have to do is make a deposit of your own at least 1 satoshi larger than mine.

Beware though, if somebody makes a higher deposit than you and you get matched with them rather than me then **you can kiss your BTC goodbye.**

The address I'm making the deposits from is also the vig address so the 0.336 BTC I just deposited in there is either going to ebb away and I lose $200 or the site will attract a crowd big enough to grow or sustain the balance in which case the game can continue.

We were issued an api code from blockchain.info yeaterday so no more processing delays Smiley

If we can turn a profit of at least $20 per month to pay for hosting then the experiment will be a success.

Link to current reddit thread: 
https://www.reddit.com/r/Bitcoin/comments/4nf8yh/the_bitchikuncom_bitcoin_experiment_just_got/

Link to previous reddit thread: 
https://www.reddit.com/r/Bitcoin/comments/4msogu/this_game_could_not_exist_before_bitcoin_was/

Link to bitcointalk thread: 
https://www.reddit.com/r/Bitcoin/comments/4msogu/this_game_could_not_exist_before_bitcoin_was/

Link to vig/deposit address: 
https://blockchain.info/address/12LmXkeVmSL3nBrMMBCPcLw2Jt97G1W4gr

Link to source code: 
https://github.com/bit-chikun/chikun

This game could not exist before bitcoin was invented.

Good luck to those brave enough to play Smiley
6  Bitcoin / Development & Technical Discussion / Spawn & distribute private blockchain networks with Docker, comments appreciated on: April 07, 2016, 12:52:59 AM
cloner
Spawn and distribute blockchain networks on the fly. Based on bitcoin 0.10.

Dependencies
git, docker

Instructions
Clone the `cloner` repo and run the setup script.
Code:
git clone https://github.com/coinclone/cloner.git && \
cd cloner && \
bash setup.sh <blockchain>

Once the genesis block is mined (the setup script takes care of this) you will find a new image inside your local repository named `coinclone/<blockchian>:node`.
Move into `cloner/deploy/`, edit the `coin.conf` file to your specifications and build any class of container you want (miner, relay).
Code:
cd deploy/

#vi coin.conf
bash setup.sh <blockchain> <node_class> <number_of_instances>

You do not need to configure the `rpcpassword` option in `coin.conf`. It will be automatically appended at runtime.

Run at least two instances to establish a network. You may deploy as many instances as you wish.
Code:
bash setup.sh bitcoin miner 1 && \
sed -i 's/gen=1/gen=0/g' config/coin.conf && \
bash setup.sh bitcoin relay 1



Important
IP addresses are deterministic in docker and so each new instance is set to connect to its own IP address - 1. If it fails to receive a response it will connect to its own IP address + 1.
You can add IP addresses manually in deploy/coin.conf

Donate
If you like the project and would like to donate some of your time and expertise by contributing to the code base, that would be fantastic and very much appreciated.
If you cannot produce code but would still like to contrubute, you can donate crypto to any of the addresses listed below which is also very much appreciated.

Bitcoin - 14qQtzyUayEj97JhizmCqwYfovqL6uLtW
Viacoin - VbWrkv8aE1zpNWDJsKVT2aGH3nBLrj7pwB
7  Alternate cryptocurrencies / Announcements (Altcoins) / na on: April 02, 2016, 03:09:15 AM
RELOCATED
https://bitcointalk.org/index.php?topic=1428763.0
8  Economy / Gambling / Bitcoin Battle-Gambling on: February 27, 2016, 02:46:06 AM
If you're feeling adventurous, please check out my new bitcoin battle-gambling game:

I'd really like to see a few live users try it out Smiley
9  Economy / Scam Accusations / In a court of law could this be considered as fraudulent behaviour? on: May 21, 2015, 07:23:52 AM
My comment was deleted from the original thread which is why I post it here:

Quote
I was asked my opinion by someone on a google hangout and I gave my opinion as requested (about bitcoin and altcoins in general). At no point have I dished out advice.
I just took a second look at the video link.
Exact words were "My investment advice is don't hold any crypto coins at all."

What surprises me about this is that if Steve Jobs had issued new Apple shares that the general public could buy, made a tidy profit by doing so and then went on the record a year later saying that those shares were worthless, that people holding them were "nuts" and that there was only a small percentage chance that they would succeed, even if he tried to cover himself by saying that he believed personally they might go up in price one day (assuming there is a one day), shouldn't he then expect a lawsuit from those investors because effectively that would be tantamount to fraud wouldn't it?

I'm not calling Drak a fraudster but my above description would be accurate for Jobs wouldn't it?, am I wrong??
And if Steve then started making the case that nobody was forced to buy them or that the risk is inherent to investing, that simply wouldn't fly given the statements made by him previously. Yes?

Opinions?
10  Bitcoin / Project Development / [OLD] CRYPTOGRAPHIC PROOF OF ASSOCIATION on: May 13, 2015, 09:58:14 AM
New thread here.
11  Alternate cryptocurrencies / Altcoin Discussion / Viacoin Price Discussion and Speculation on: November 23, 2014, 10:59:53 AM


REASON FOR THE EXISTENCE OF THIS THREAD:
The official Viacoin thread disallows the discussion of price action, price targets and chart analysis.

I myself would like to hear the input of other users on these topics.

This notification at the top of the official thread (just like this one) reads -
"This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic."
which is why which is why this thread exists and hopefully like minded users will participate.

SHORT INTRODUCTION TO VIACOIN AND CLEARINGHOUSE:
Clearinghouse is a Counterparty clone with extended functionality (such as A feature named 'Notery') built on top of the Viacoin blockchain (which itself is ultimately based upon the Bitcoin blockchain with a confirmation time of just 24 seconds) but rather than both being separate entities they are built and maintained together, making it a viable (and in many ways more practical) alternative with excellent prospects for the future such as active R&D into Peter Todds treechain proposal and allowing metadata to be stored inside of the blockchain for ease of third party application development.

THREAD RULES:
In this thread we follow the scientific method so -
Treat other users with respect.
Respect the opinions of other users.
Any news or announcements must be backed up with evidence. Unfounded rumours will be deleted.
P/Dumping and misinformation will not be tolerated.
12  Alternate cryptocurrencies / Service Announcements (Altcoins) / !BIT-CHIKUN.COM! [SATOSHI DOES NOT PLAY DICE!!] $200 UP FOR GRABS THIS WEEK on: September 22, 2014, 02:01:52 AM
Translations:
ChineseMalayHindiSpanishRussian
ArabicBengaliPortugueseIndonesianFrench

Contact us:
Website- https://bit-chikun.com
Twitter- https://twitter.com/bitchikun
GitHub- https://github.com/bit-chikun/chikun




The first ever gambling website based purely on risk aversion, made possible by the emergence of cryptographic currencies.



About bit-chikun.com:
Inspired by Satoshi Nakamoto's example of what the global financial system would look like when occams razor is liberally applied (and Googles simplicity regarding their search page), we decided to re-examine the concept of gambling.

Commonly, when a wager is placed the outcome of that wager will depend on an event such as a coin toss, horse race, football game etc, but now thanks to the instantaneous and irreversible nature of crypto we can take occams razor (like Satoshi) to this situation and remove the random event.




How bit-chikun.com works in a nutshell:
A user visits our website, generates a one time bitcoin deposit address and sends some BTC there.
This deposit is registered by our website and matched to another deposit completely at random.
The user who made the highest deposit (was less risk averse) wins the pot total and has all the BTC sent back to them. (the loser goes home empty handed).




A word on security:
All of our sites traffic is processed using HTTPS for maximum privacy and security.

Also this shows that we have registered with a trustworthy certificate authority and can be identified/held accountable for any fraudulent activity were it to occur on our site.




Fees:
Minimum deposit amount is 0.001 BTC.
Deposits lower than the minimum will not be picked up or processed by our system and we will make no effort to return them.

We take a 2% vig from the losing deposit in each successful matching.

Example -
Alice deposits 10 BTC
Bob deposits 1 BTC

Alice’s' deposit is greater than Bobs so she gets her 10 BTC back plus 0.98 of Bobs BTC since we (bit-chikun) took 0.02 as a fee from Bobs deposit.




Deposit addresses:
Deposit addresses are single use only.




More on security:
Only the bare minimum amount of BTC is in our possession at any one time, deposits are typically held for one confirmation and then sent away.

When a deposit comparison is made and funds are sent, the inputs used are the exact same inputs that correspond to the deposit addresses which basically means that double spend attacks would be very difficult because if the attack was unsuccessful then the attackers funds would be processed as a legitimate bet (no harm done), if successful the attackers funds would evaporate from out wallet address and it would be like the deposit never happened (again, no harm done).
SatoshiDice employs a similar tactic apparently.

We require only 1 confirmation before a transaction becomes eligible to be processed so in a normal scenario you should not be without your bitcoins for more than 10minutes (average block discovery time regarding BTC).
We attempt to match your wager with other deposits in the system to a maximum of 3 confirmations at which point your funds are returned as we were unsuccessful in providing you with an opponent.




Transparency:
All successful interactions are published on our results page with links to the wallet addresses and transaction numbers. An index ID is also provided for easy identification should a problem ever arise.

The results page is searchable for IDs, addresses, deposit amounts and transaction identification numbers.

Double deposits and minimum amount  deposits are not displayed on the results page, in these cases your deposit address and transaction id and even the BTC address you sent it from can be used to identify your deposit and it will be easily viewable on the blockchain.




Return addresses:
Return addresses are supplied by users before making their deposits, bit-chikun.com takes no responsibility for funds returned to addresses outside of your control.




More info:
bit-chikun.com ltd's method for random database matching as a form of decision making regarding cryptographic currencies and their interactions or determining the nature of an interaction based purely on the risk aversion of the participants as opposed to the outcome of an event is protected by international copyright.
13  Bitcoin / Bitcoin Technical Support / How to receive and manipulate a bip 70 payment object in django python? on: June 10, 2014, 11:50:54 AM
I'm trying to check to see if the variables are being set correctly by the client and being received correctly by me.
I'm new to proto buffs and django and my code below doesn't seem to be working.
I'm using bitcoin 0.9
I'm trying to capture a refund address.

In views:
Code:
   from project import payments_pb2
    def protoresponse(request):
        xpo = payments_pb2.Payment.ParseFromString(request)
        returnaddress = xpo.refund_to
        transactions = xpo.transactions
        memo = xpo.memo
    
        xpa = payments_pb2.PaymentACK
        xpa.payment = xpo.SerializeToString()
        xpa.memo = 'success'
        return HttpResponse(xpa.SerializeToString(), content_type="application/octet-stream")
Any pointers would be greatly appreciated Smiley
14  Bitcoin / Bitcoin Technical Support / Bitcoin google protocol buffer error python django? serialized_payment_details on: June 04, 2014, 10:02:45 PM
Here is my problem guys,

I initialise the protofile as shown in the bitcoin for developers wiki shown here:

Code:
    package payments;
    option java_package = "org.bitcoin.protocols.payments";
    option java_outer_classname = "Protos";
   
    message Output {
            optional uint64 amount = 1 [default = 0];
            required bytes script = 2;
    }
    message PaymentDetails {
            optional string network = 1 [default = "test"];
            repeated Output outputs = 2;
            required uint64 time = 3;
            optional uint64 expires = 4;
            optional string memo = 5;
            optional string payment_url = 6;
            optional bytes merchant_data = 7;
    }
    message PaymentRequest {
            optional uint32 payment_details_version = 1 [default = 1];
            optional string pki_type = 2 [default = "none"];
            optional bytes pki_data = 3;
            required bytes serialized_payment_details = 4;
            optional bytes signature = 5;
    }
    message X509Certificates {
            repeated bytes certificate = 1;
    }
    message Payment {
            optional bytes merchant_data = 1;
            repeated bytes transactions = 2;
            repeated Output refund_to = 3;
            optional string memo = 4;
    }
    message PaymentACK {
            required Payment payment = 1;
            optional string memo = 2;
    }

throw this view into django which fetches the public key associated with a newly created address, hashes it into the correct format for a script, serializes the 'serialized_payment_details' field and returns a response object.

Code:
    def paymentobject(request):
   
        def addr_160(pub):
            h3 = hashlib.sha256(unhexlify(pub))
            return hashlib.new('ripemd160', h3.digest())
   
        x = payments_pb2
   
        btc_address = bc.getnewaddress()
   
        pubkey_hash = bc.validateaddress(btc_address).pubkey
        pubkey_hash160 = addr_160(pubkey_hash).hexdigest()
        hex_script = "76" + "a9" + "14" + pubkey_hash160 + "88" + "ac"
        serialized_script = hex_script.decode("hex")
   
        xpd = x.PaymentDetails()
        xpd.time = int(time())
        xpd.outputs.add(amount = 0, script = serialized_script)
   
        xpr = x.PaymentRequest()
        xpr.serialized_payment_details = xpd.SerializeToString()
   
        return HttpResponse(xpr.SerializeToString(), content_type="application/octet-stream")

When I point my bitcoin v0.9 client at URI

    bitcoin:?r=http://127.0.0.1:8000/paymentobject

I am met with an error

Code:
    [libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "payments.PaymentRequest" because it is missing required fields: serialized_payment_details

But it isn't missing the details field is it?
15  Bitcoin / Bitcoin Technical Support / possible to decode bitcoin address from 'scriptSig' in a raw transaction? on: May 19, 2014, 04:18:06 AM
Code:
7.  "in":[
8.    {"prev_out":
9.      {"hash":"2007ae...",
10.      "n":0},
11.    "scriptSig":"304502... 042b2d..."}],

Quote
Line 11 contains the signature of the person sending the money,
304502..., followed by a space, and then the corresponding public key, 04b2d.... Again, these are both in hexadecimal.

Can I convert the public key in scriptSig back into it's corresponding bitcoin address or is this not possible?
Thanks Smiley
16  Bitcoin / Bitcoin Technical Support / Why does this Python code fail to find the source input address I'm looking for? on: May 16, 2014, 09:29:37 AM
What this code is supposed to do:-

From the decoded raw transaction(s) found in the vin section of a decoded raw transaction I just received, I scrape every vout address and put them in a list.
I then remove addresses if identical to my company address or any address in my wallet.

Code:
   vins = decoderawtransaction(getrawtransaction(input_transaction_hash, verbose=False))['vin']
    vin_lst = []
    c = 0
    
    while c < len(vins):
        vin_lst.append(vins[c]['txid'])
        c += 1
    
    vout_lst = []
    
    for i in vin_lst:
        vouts = decoderawtransaction(getrawtransaction(i, verbose=False))['vout']
        c = 0
    
        while c < len(vouts):
            v = vouts[c]['scriptPubKey']['addresses'][0]
    
            if v != input_address and v not in getaddressesbyaccount('customer'):
                vout_lst.append(v)
    
        c += 1
    
    return_address = vout_lst[0]

Sometimes though the return address derived sends the funds to my wallet for some reason I don't understand.

It may be worth mentioning that i have been sending the funds between only two wallets during testing and wonder if this could be a possible reason?
I am using two instances of bitcoind each in a virtual machine.
17  Alternate cryptocurrencies / Announcements (Altcoins) / [QB NEWS] !! QUARKBAR ANDROID WALLET, NEW **PULSE** ALGO !! [QB NEWS] on: May 11, 2014, 08:55:48 AM


- - - - -

Quarkbar is fast becoming 'the little coin that could' as it's community grows so does the price which at the time of writing has risen over 1000% or 10x it's value from 60 - 800 satoshi is just two weeks!

but it is still too low .. I believe the regular price is
50κ-100κ for 1 qb Smiley
It is ten times as rare as quarkcoin, so that value is not absurd Smiley

Quarkbar makes no claim to represent a country, it isn't based on a meme, and it's algorithm isn't SHA or Scrypt based which means fair mining opportunity for everyone (no ASICS).
No gimmicks here, just a dedicated community building a coin on technical merit.
For comparison against original Quark - There are 17x less Quarkbar and they are trading for a quarter of the price.
The 1000 satoshi mark is fast approaching with no sign of slowing for Quarkbar.
'The little engine that could' is leaving the station.....


- - - - -

With seemingly relentless positive news in the Quarkbar forum the newly established CRF took yet another turn for the better with the latest announcement that Dark Gravity Wave Version 3 will be seen in QB before DarkCoin!

"We're rolling DGWv3 even before DarkCoin"

- - - - -

Quarkbar, an alternative crypto currency based on the secure quark algorithm which involves nine rounds of hashing (where as bitcoin relies on only one which was produced by the NSA) saw a dramatic 280% rise in value this week due to a community takeover headed by bitcointalk forum user Jonesd.

Can we start a new github account using the old source and start a new thread here with a community take-over account? That way, we can maintain the current chain.

Quarkbar, unlike most Quark clones whose unit counts are in the billions, has zero premine and a limited supply of just over 15,000,000 coins to be minted over the next four years.
It is the first coin to be actively adopted and now managed by the Coin Revival Foundation.

Fixed the source of Quarkbar and took over the coin.

Dubbed a 'Community Takeover' the uprising began at the end of April when Jonesd teamed up with Obfuscode and Logicoin.info to track down the original source from a still active mining pool and reinstating the code on GitHub, as if that wasn't enough they also removed the current Kimoto Gravity Well implementation which had recently been tarnished due to an exploit discovered slightly earlier and replaced it with the newest difficulty retargeter Dark Gravity Wave v2!

We took over the source code and implemented DGW V2

Quarkbar also saw a huge surge in hash power which increased by 3000%.

18  Alternate cryptocurrencies / Announcements (Altcoins) / [BIG NEWS] !! QUARKBAR !! [BIG NEWS] on: May 04, 2014, 05:02:35 AM
Latest update here.
19  Bitcoin / Bitcoin Technical Support / Automated cold wallet withdrawals safe if compiled into binarys? on: April 22, 2014, 01:36:22 AM
extended from - https://bitcointalk.org/index.php?topic=578776.0

Using the 'bitcoind' command line program is it possible to withdraw from a cold wallet as long as you have the private key such as:
Code:
./bitcoind sendfrom coldwallet customer 0.1 theprivatekey
What is the correct command/context to use and where do i supply the private key?

And...
If inside of my source code script I was to supply the private key such as:
Code:
coldwalletkey = thEC0ldk3Yetcetcetc
and then ran it through a compiler so it cannot be reverse engineered and read (or at least is very difficult), then would this be a good solution to prevent hackers that access the server from spending funds from the wallet yet still allow me to automate it?

Thanks in advance Smiley
20  Bitcoin / Bitcoin Technical Support / Prove offline transactions to customers? on: April 21, 2014, 12:15:50 PM
Hi everyone Smiley

I'm trying to develop a bitcoin app in which a customer will send me some funds, I will then move them around from one account to another and send it back to them.
To save on transaction fees I want to us the 'move' command for in-house transfers but when I do so I'm only provided with a True or False value rather than a transaction id.

My question is - When the funds are moved will this be this visible in the blockchain (blockchain.info in particular) and if not then how can I prove to my customers that the 'movements' took place and I'm not just lying to them?

Thanks in advance for any input Smiley

(I'm not trying to develop a mixer by the way)
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!