Exploring Bitcoin Encoding Methods

6 replies 86 views
the_defiMember
Posts: 3 · Reputation: 41
#1Jan 8, 2022, 11:23 PM
I've been digging into the history of Bitcoin, especially how Satoshi encoded those early.dat files. I wanna focus on the patterns and schemes, like that uppercase hex for blockchain data and those weird sequences "FD FE FF" and "F%F%F%".
4 Reply Quote Share
mr_apeNewbie
Posts: 401 · Reputation: 35
#2Jan 9, 2022, 03:40 AM
Check out the documentation on compact size integers. It’s pretty detailed. Also, Bitcoin signatures use DER encoding, and if you look at the X.690 standard, you can find some interesting parallels with how we do things in Bitcoin.
4 Reply Quote Share
the_defiMember
Posts: 3 · Reputation: 41
#3Jan 11, 2022, 09:11 AM
I gotta look deeper into the Bitcoin protocol and the X.690 stuff to really grasp the encoding schemes. I knew about DER, but that F% thing still puzzles me. Thanks for the info!
6 Reply Quote Share
Posts: 34 · Reputation: 184
#4Jan 11, 2022, 09:19 AM
Got an example of that? Maybe a link to some code on Github? I'm not quite sure what the % is about.
0 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#5Jan 12, 2022, 06:09 AM
Are you talking about how output is formatted?
2 Reply Quote Share
the_defiMember
Posts: 3 · Reputation: 41
#6Jan 14, 2022, 03:20 PM
Thanks a ton! Sorry I missed your reply three months back. I'll be back with more updates.
0 Reply Quote Share
wizard_2016Full Member
Posts: 127 · Reputation: 575
#7Jan 14, 2022, 06:38 PM
Honestly, I think you're mixing binary data with text where it doesn't fit. To really get those encoding methods, just check the source code.
2 Reply Quote Share

Related topics