Bitcoin Forum
November 20, 2017, 06:32:16 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: OP_CHECKFEE to allow offline tx signing to see tx fee  (Read 623 times)
CIYAM
Legendary
*
Offline Offline

Activity: 1862


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 22, 2013, 05:57:06 PM
 #1

The idea is to add to the end of a tx an optional new op code OP_CHECKFEE plus an amount (in satoshis) for the fee the tx will pay.

This would allow an offline signing device to sign a tx with the signer knowing both the amount to be output (currently available from the raw tx) and the fee (currently not knowable without the relevant full UTXO information).

It would require a hard fork to properly implement (as the idea would be that if the amount in OP_CHECKFEE does not match the tx fee then the tx would be invalid) although it could initially be ignored (in terms of validation) until a certain date in the future.

The advantage is that you could create offline signing devices that need *zero* information from the blockchain (very useful if you want to use QR codes for 100% air-gapped offline txs).


With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511159536
Hero Member
*
Offline Offline

Posts: 1511159536

View Profile Personal Message (Offline)

Ignore
1511159536
Reply with quote  #2

1511159536
Report to moderator
1511159536
Hero Member
*
Offline Offline

Posts: 1511159536

View Profile Personal Message (Offline)

Ignore
1511159536
Reply with quote  #2

1511159536
Report to moderator
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1106


View Profile
November 22, 2013, 06:30:08 PM
 #2

If you think this is a good idea, you'll get more traction by writing an implementation.

Hint: it doesn't need a hard-fork.

CIYAM
Legendary
*
Offline Offline

Activity: 1862


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 22, 2013, 06:32:24 PM
 #3

If you think this is a good idea, you'll get more traction by writing an implementation.

Hint: it doesn't need a hard-fork.

Thanks for the reply - and I have no problem to write the code but more importantly "do you think it is a good idea"?

(writing code to just be ignored by the core devs is not one of my interests)

And I would be interested to know why it wouldn't require a hard fork also (I understand quite a bit about Bitcoin but am sure nowhere near as much as you do).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1106


View Profile
November 22, 2013, 06:50:51 PM
 #4

If you need to ask whether or not the code will be ignored maybe you just shouldn't do it - treat it as a good way to learn something more about Bitcoin, if it gets adopted down the road, great! But it probably won't be - at best the implementation will explore the problem for another implementation to learn from down the road.

re: hard-fork... "good way to learn" Smiley

CIYAM
Legendary
*
Offline Offline

Activity: 1862


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 23, 2013, 03:17:30 AM
 #5

If you need to ask whether or not the code will be ignored maybe you just shouldn't do it

No worries - I'll just leave it to you guys that are in the "club". Wink

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!