Bitcoin Forum
December 13, 2017, 02:00:18 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: BIP70 : Question about canonical representation of signed data  (Read 1798 times)
Nicolas Dorier
Hero Member
*****
Offline Offline

Activity: 700


View Profile
June 02, 2014, 01:21:02 PM
 #21

My reading of what the BIP says is that the fields that are serialized, are serialized in numerical order. Not that all fields including optional fields must be redundantly written to the wire.

This is the part that is not clear for me,
My reading is that all fields should  be serialized. Even if they are not included in the wire.
This is the part that is unclear, and I think each implementation have its own interpretation. (which depends on the default behavior of their protobuf implementation)

As I said, there is no wrong implementation of protobuf, we just need to know what I need to sign : the data from the wire ? or all data (omited fields from the wire included) ?
To my understanding we need to sign all fields, and not just what is received or sent to the wire.

Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513130418
Hero Member
*
Offline Offline

Posts: 1513130418

View Profile Personal Message (Offline)

Ignore
1513130418
Reply with quote  #2

1513130418
Report to moderator
1513130418
Hero Member
*
Offline Offline

Posts: 1513130418

View Profile Personal Message (Offline)

Ignore
1513130418
Reply with quote  #2

1513130418
Report to moderator
1513130418
Hero Member
*
Offline Offline

Posts: 1513130418

View Profile Personal Message (Offline)

Ignore
1513130418
Reply with quote  #2

1513130418
Report to moderator
Nicolas Dorier
Hero Member
*****
Offline Offline

Activity: 700


View Profile
June 04, 2014, 11:15:05 PM
 #22

Mike, you were right with your reading of the BIP, Gavin just clarified the BIP, I'll change my implementation.

Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
Pages: « 1 [2]  All
  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!