Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Can you say why do you want to pass pubkeys around? What's so bad about regular
Bitcoin addresses?
Original comment by andreas....@gmail.com
on 12 Aug 2013 at 10:07
I have no interest in passing public keys; I'm interested in using the Bitcoin
scripting language.
https://en.bitcoin.it/wiki/Script
scriptPubKey is just the name of the payment validation instructions that are
attached to a transaction output; it doesn't actually have to have a public key
in it.
My immediate goal is to use the PUSHDATA op-codes to add constants to the
script so I can associate Bitcoin payments with particular
(non-bitcoin-payment) transactions. If someone places an order, and then I see
a payment, I need to know whether it came from the person placing the
order--and there's even more risk if the payment precedes the order since it's
publicly viewable in the block chain. Beyond that, I am also interested in
being able to create some of the more complex transactions described here:
https://en.bitcoin.it/wiki/Contracts
These require the ability to program transaction output scripts.
Original comment by adammack...@gmail.com
on 12 Aug 2013 at 11:10
The API for external applications will be enhanced as usecases mature. However,
I won't open it for passing "arbitrary script data". You'd only find that the
app would not handle special transactions the right way.
I suggest using bitcoinj in your app directly for experimenting. If you feel
your usecase is already mature, feel free to start a discussion in the forum or
maybe even the bitcoinj developer mailing list and we find a way to get your
usecase covered.
Original comment by andreas....@gmail.com
on 18 Aug 2013 at 9:27
Okay. Thank you for the consideration, prompt response and explanation.
Original comment by adammack...@gmail.com
on 18 Aug 2013 at 11:09
With the arrival of the payment protocol it appears to make more sense to
specify whole scriptPubKeys rather than just addresses. The payment protocol
itself allows for this. I'll add this to the integration subproject eventually.
Original comment by andreas....@gmail.com
on 24 Feb 2014 at 10:00
It will also allow for multiple outputs and other payment protocol features.
Original comment by andreas....@gmail.com
on 24 Feb 2014 at 10:01
looking forward to the multiple outputs feature ... would be great to have a
basic implementation already by mid/end of next week ... Bitcoin Conference and
SXSW coming up ... would love to demo the integration there to people on my app
- hey but no pressure ;)
Original comment by rotz...@googlemail.com
on 24 Feb 2014 at 10:51
I have a branch that implements the feature here:
https://github.com/schildbach/bitcoin-wallet/commits/integration-payment-request
Try building all sub-projects. Then deploy to your device "wallet" and
"sample-integration-android". The later will show you how to build and send a
payment request. In bitcoinj 0.12, we expect to see a helper class for creating
payment requests, but for now you need to create it "by hand".
Does this work for you?
Note that before actually using this on mainnet, you need to wait for until I
merge this branch and deploy a new version of the app to the Play Store.
Original comment by andreas....@gmail.com
on 24 Feb 2014 at 1:55
One more thought: I think I will even return a BIP70 payment message via the
result intent (in case you used "requestForResult"). Currently, you only get a
transaction hash, which by the way is the old one that is affected by
transaction malleability. I'll implement this the coming days.
Original comment by andreas....@gmail.com
on 26 Feb 2014 at 12:39
Excellent; thank you Andreas. I am certain that I am not alone in my
expectation that this will prove to me a widely-appreciated and usefully-used
feature.
Original comment by adammack...@gmail.com
on 27 Feb 2014 at 5:33
Cool ... got it working on my supporttr app. That is really easing the process
with multiple outputs! Thanks :) Let me know when the feature got released on
official client.
Original comment by rotz...@googlemail.com
on 27 Feb 2014 at 1:49
Cool! I'll work on this branch over the weekend, let you test again for one
round and release after that (at least as a public beta version).
Original comment by andreas....@gmail.com
on 27 Feb 2014 at 2:38
Actually I didn't wait for the weekend and implemented the payment message in
the result right away. The branch is almost ready to merge -- I just want to do
some regression testing.
It would be nice if you took a quick glance if your app still works. It should,
as I didn't change any API. You can use
BitcoinIntegration.paymentFromResult(data) if you can make any use of the
payment message.
Original comment by andreas....@gmail.com
on 27 Feb 2014 at 5:08
I checked out the branch again, compiled it and its still working with my App :)
Original comment by rotz...@googlemail.com
on 1 Mar 2014 at 11:29
Brilliant, thanks! I just merged everything and pushed version 3.38 to Google
Play. For getting the mainnet version, subscribe to beta versions here:
https://play.google.com/apps/testing/de.schildbach.wallet
More testing appreciated.
Original comment by andreas....@gmail.com
on 1 Mar 2014 at 2:09
Original comment by andreas....@gmail.com
on 1 Mar 2014 at 2:10
Original issue reported on code.google.com by
adammack...@gmail.com
on 12 Aug 2013 at 2:32Attachments: