Bitcoin Forum
May 24, 2024, 03:29:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 »
421  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
422  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Roadmap Released! on: June 10, 2014, 04:44:47 AM
The key to success in this game is technical innovation, period. Gimmicks give us short lived spiky prices (coinye) tech gives you longevity (vertcoin)
423  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Roadmap Released! on: June 09, 2014, 09:32:57 AM
We have over 400 followers on twitter now! Smiley
Amazing progress Smiley
424  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Roadmap Released! on: June 07, 2014, 06:12:05 AM
is it my imagination but on qex.la it says that bitquark is worth more than quarkbar in terms of usd but less in btc. am i reading that right?
425  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Cinni | PoS | No premine | No IPO on: June 07, 2014, 05:35:28 AM
Seems screenshots are just not enough for people to hold.

I can't expect people to sell this low once the working wallet gets released.
We've all learned the hard way that screenshots aren't the most reliable form of proof in the world from previous threads on bitcointalk Sad
426  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Roadmap Released! on: June 06, 2014, 11:06:01 PM
Is it Q3 yet? Wink
Darn it Embarrassed
Is next weeks revolution still on the cards?
427  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ Community Takeover ★ First coin with DarkgravityWave v3! on: June 06, 2014, 02:01:48 AM
Donations are welcome:-)
0.02btc sent to donation address as promised Smiley
428  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 05, 2014, 09:38:36 PM
looks like sharex may have been a scam
Quote
All those wasted votes Tongue
429  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 05, 2014, 10:55:21 AM
June 3: We will revolutionize the crypto-economy! Announcement here.
I also favour the bold approach Smiley
430  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 05, 2014, 06:56:37 AM
We will implement it in Frycoin, our experimental coin first and then in Quarkbar.
Very excited about this as well Smiley
431  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ Community Takeover ★ First coin with DarkgravityWave v3! on: June 05, 2014, 01:28:41 AM
Please vote for QB on C-Cex too, That way we have a merchant payment processor and we can do a market and sell physical and virtual goods for QB!
We can only vote once per account Sad wonder if it might be worth having a fund raiser and buying some votes? it would cost 0.2btc at this point.
I'll happily pledge 0.02btc ($12) for the cause. Only need 9 others like me Wink Wink

#1
432  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 05, 2014, 12:09:05 AM
The Cryptocoin Revival Foundation is working on an innovation that will revolutionize the crypto-economy!
Coulld it be.. POWS!, lol
433  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?
434  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 03, 2014, 08:17:09 AM
it will change to pure pos ,that;s good news, who charge to ready to launch to Mp?
Then vote for POS my friend, vote like crazy Smiley
435  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 03, 2014, 07:23:48 AM
I mean this current page now, lol Cheesy
436  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 03, 2014, 07:08:50 AM
What do you mean? It is in the opening message Smiley
Current page in the thread for newcomers I mean Smiley
437  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ Community Takeover ★ First coin with DarkgravityWave v3! on: June 02, 2014, 11:34:56 AM
POS is in second place behind Experimental New Things and closely followed by Matt Damon.

I urge you to please please vote for POS before the time is over. It is a familiar concept with huge public appeal, there is no other quark algo coin out there that has this and it will give us a clear direction to start moving in.

If 'experimental new things' comes out on top then *we have to start debating what that new thing will be, then *we have to get it working which will take time.
Let new experimental concepts be tried on other coins controlled by the CRF, or better yet create a guinea pig coin and experiment on that.

Our all time high on Allcoin was 850 which came when DGWv3 was installed which we haven't broken since.
Let's push forward, we've made so much progress already let's not start chasing our tail now.
The forum went almost 24 hours without comment yesterday Sad

Let's keep the momentum going, let's give the other forums reason to take notice, talk about us and invest in us! Smiley

*we = Obfuscode and Jonesd mostly Wink
Last ditch effort Tongue
438  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ New Community Quarkbar ★ Tipping Bot Ready! on: June 02, 2014, 10:26:27 AM
Quarkbar marketplace?
Please elaborate if possible, sounds very interesting Cheesy
439  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ Community Takeover ★ First coin with DarkgravityWave v3! on: May 31, 2014, 10:57:47 PM
The more I think about it the more I like the idea of a universal basic income.
I remember reading about the abolition of the benefit system in favour of a universal basic income for everybody and how 'manual mining' (poverty stricken third world citizens solving captures all day) could earn enough money to eat regardless of skill set and location, they would just need an internet connection.
As long as we can avoid abuses like generating thousands of wallets under one client and harvesting the interest then this could be a real step forward for our beloved coin Smiley
440  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][QB] Quarkbar ★ Community Takeover ★ First coin with DarkgravityWave v3! on: May 31, 2014, 12:55:38 PM
Yes, the amount of coins doesn't matter with the wallet synch anyway and only encourages holding the money. POWS only looks at the amount of time you synch the wallet and rewards even the people with an empty wallet. Smiley
Sounds awesome to me Smiley
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!