Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

How to generate Block Binary? #67

Closed
deefactorial opened this issue Nov 11, 2020 · 2 comments
Closed

How to generate Block Binary? #67

deefactorial opened this issue Nov 11, 2020 · 2 comments

Comments

@deefactorial
Copy link

the tests give examples with pre-compiled hex binary of a block but don't explain how to generate those. The best examples I could get are https://en.bitcoin.it/wiki/Block_hashing_algorithm how do I generate these hex examples from block headers?

@rvagg
Copy link
Member

rvagg commented Nov 12, 2020

Have a look in https://github.com/ipld/js-bitcoin where there's a full two-way process, you can go from binary to data model and data model to binary.

js-bitcoin needs some minor restructuring because it's using an older form of our multiformats work, I need to tidy that up, get it published as @ipld/bitcoin and deprecate this repo. So you're best off looking over there for these kinds of things.

@rvagg
Copy link
Member

rvagg commented Dec 6, 2022

closing for archival

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants