0

Hex string is from https://github.com/bitcoin/bitcoin/blob/d30f149360d10de31bd7f7369aa61ce8be0837b5/src/kernel/chainparams.cpp#L75C5-L75C206

I have tried the following Python 3 code but it doesn't seem to get the string expected.

bytes_data = bytes.fromhex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f")
string_data = bytes_data.decode("ascii", errors="ignore")
print(string_data)

It's printing:

gUH'gq0\(9  ybaI?L8U\8M
                           WLp+k_

Instead of:

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"

What am I missing?

1
  • I'm not a bitcoin expert, but that hex string looks like an SEC1 uncompressed elliptic curve point. There is no way to get that ASCII string from that 65-byte value. Commented Oct 18 at 21:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.