in3rsha / learnmeabitcoin-code Goto Github PK
View Code? Open in Web Editor NEWSimple code snippets to help you understand how Bitcoin works.
Home Page: http://learnmeabitcoin.com
Simple code snippets to help you understand how Bitcoin works.
Home Page: http://learnmeabitcoin.com
Hi! Thank you for creating the learnmeabitcoin website, it's been super helpful to me! I started implementing some pieces of Bitcoin to get a better handle on it, and noticed that the transaction data structure described at https://learnmeabitcoin.com/technical/transaction-data is not current, since the Bitcoin core code has this flags field that can appear sometimes.
I wasn't really sure where to report this or if I can just make a PR to update it, so I'm filing this issue hoping you see it. Thanks!
learnmeabitcoin-code/checksum.rb
def checksum(hex)
hash = hash256(hex) # Hash the data through SHA256 twice
return hash[0...8] # Return the first 4 bytes (8 characters)
end
hash = hash256(hash256(hex))
this is a great repository,love you ( 0 3 0 )
Hello! I very much enjoyed your website. While doing some double checking to make sure I understood things, I stumbled upon a UI issue with your blockheader example. The timestamp isnt highlighting the leftmost character. As a result it looks 7 characters long instead of 8. Cheers! Great stuff.
Hello Greg, thank you for creating such a great website.
The TXID in the link below is invalid and refers to a false transaction.
https://learnmeabitcoin.com/guide/input
It should be changed from "0d0897966df95d0b8e7a33855a64f7de365e7d17e28f2a05c39806e77d5f9859" to "c1b4e695098210a31fe02abffe9005cffc051bbe86ff33e173155bcbdc5821e3", like other pages.
P.S. I didn't know here is a good place to report this issue or no, but anyway I didn't find anywhere better.
Where do I find hash256?
checksum.rb:3:in `checksum': undefined method `hash256' for main:Object (NoMethodError)
Did you mean? hash
from checksum.rb:7:in `<main>'
Should I be using Digest? Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.