Bitcoin Forum
May 07, 2024, 07:08:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: OP_CHECKFEE to allow offline tx signing to see tx fee  (Read 730 times)
CIYAM (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 22, 2013, 05:57:06 PM
Last edit: November 22, 2013, 06:30:40 PM by CIYAM Open
 #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
1715108929
Hero Member
*
Offline Offline

Posts: 1715108929

View Profile Personal Message (Offline)

Ignore
1715108929
Reply with quote  #2

1715108929
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715108929
Hero Member
*
Offline Offline

Posts: 1715108929

View Profile Personal Message (Offline)

Ignore
1715108929
Reply with quote  #2

1715108929
Report to moderator
1715108929
Hero Member
*
Offline Offline

Posts: 1715108929

View Profile Personal Message (Offline)

Ignore
1715108929
Reply with quote  #2

1715108929
Report to moderator
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1120
Merit: 1150


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 (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


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: 1120
Merit: 1150


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 (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
November 23, 2013, 03:17:30 AM
Last edit: November 25, 2013, 04:48:22 AM by CIYAM Open
 #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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!