BIP 70 and OP_RETURN

BIP 70 and OP_RETURN
2014-03-29 13:30 ` Mike Hearn
  
From: Justus Ranvier @ 2014-03-28 21:40 UTC (permalink / raw)
  To: bitcoin-development


[-- Attachment #1.1: Type: text/plain, Size: 530 bytes --]

The description of the Output message states that the payment request
can specify any standard TxOut script, and that OP_RETURN is a standard
transaction type that would imply the ability to specify OP_RETURN
outputs in BIP 70 payment requests.

If the creator of a payment request wanted the sender to include a small
amount of data as an OP_RETURN output, how would they specify this?

-- 
Support online privacy by using email encryption whenever possible.
Learn how here: http://www.youtube.com/watch?v=bakOKJFtB-k

[-- Attachment #1.2: 0x1B438BF4.asc --]
[-- Type: application/pgp-keys, Size: 21521 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

 permalink raw reply	[|nested]
2014-03-28 21:40 [Bitcoin-development] BIP 70 and OP_RETURN Justus Ranvier

  2014-03-29 15:02   ` Justus Ranvier
  
From: Mike Hearn @ 2014-03-29 13:30 UTC (permalink / raw)
  To: Justus Ranvier;  Bitcoin Dev

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

They would just encode the OP_RETURN script into an Output structure. I'm
not sure about the question - you seem to give the answer yourself in the
first paragraph?

[-- Attachment #2: Type: text/html, Size: 225 bytes --]

 permalink raw reply	[|nested]
2014-03-29 13:30 ` Mike Hearn

  2014-03-29 15:06     ` Mike Hearn
  
From: Justus Ranvier @ 2014-03-29 15:02 UTC (permalink / raw)
  To: Mike Hearn;  Bitcoin Dev


[-- Attachment #1.1: Type: text/plain, Size: 520 bytes --]

On 03/29/2014 01:30 PM, Mike Hearn wrote:
> They would just encode the OP_RETURN script into an Output structure. I'm
> not sure about the question - you seem to give the answer yourself in the
> first paragraph?
> 

I guess what I was asking is whether or not all BIP70 compatible clients
will support the creation of all standard output types, including
OP_RETURN outputs.

-- 
Support online privacy by using email encryption whenever possible.
Learn how here: http://www.youtube.com/watch?v=bakOKJFtB-k

[-- Attachment #1.2: 0x1B438BF4.asc --]
[-- Type: application/pgp-keys, Size: 21521 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

 permalink raw reply	[|nested]
2014-03-29 15:02   ` Justus Ranvier

  
From: Mike Hearn @ 2014-03-29 15:06 UTC (permalink / raw)
  To: Justus Ranvier;  Bitcoin Dev

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

They should do. If they don't they're not spec compliant. I'm not sure what
they actually do though. Currently only Bitcoin Core and Android Bitcoin
Wallet implement BIP 70 so you can just create such a request and then try
it out and see what happens.


On Sat, Mar 29, 2014 at 4:02 PM, Justus Ranvier <justusranvier@gmail•com>wrote:

> On 03/29/2014 01:30 PM, Mike Hearn wrote:
> > They would just encode the OP_RETURN script into an Output structure. I'm
> > not sure about the question - you seem to give the answer yourself in the
> > first paragraph?
> >
>
> I guess what I was asking is whether or not all BIP70 compatible clients
> will support the creation of all standard output types, including
> OP_RETURN outputs.
>
> --
> Support online privacy by using email encryption whenever possible.
> Learn how here: http://www.youtube.com/watch?v=bakOKJFtB-k
>

[-- Attachment #2: Type: text/html, Size: 1409 bytes --]

 permalink raw reply	[|nested]