Skip to main content
replaced http://bitcoin.stackexchange.com/ with https://bitcoin.stackexchange.com/
Source Link

The hex string should be transaformed to bytes first.
Change the string to

b'02218AD6CDC632E7AE7D04472374311CEBBBBF0AB540D2D08C3400BB844C654231'

Then you should get the expected result~

Here is a relevant post About performing SHA-256 hashing on the public keyAbout performing SHA-256 hashing on the public key

The hex string should be transaformed to bytes first.
Change the string to

b'02218AD6CDC632E7AE7D04472374311CEBBBBF0AB540D2D08C3400BB844C654231'

Then you should get the expected result~

Here is a relevant post About performing SHA-256 hashing on the public key

The hex string should be transaformed to bytes first.
Change the string to

b'02218AD6CDC632E7AE7D04472374311CEBBBBF0AB540D2D08C3400BB844C654231'

Then you should get the expected result~

Here is a relevant post About performing SHA-256 hashing on the public key

Source Link
moshaholo
  • 633
  • 6
  • 16

The hex string should be transaformed to bytes first.
Change the string to

b'02218AD6CDC632E7AE7D04472374311CEBBBBF0AB540D2D08C3400BB844C654231'

Then you should get the expected result~

Here is a relevant post About performing SHA-256 hashing on the public key