Generate Bitcoin Address JS Step-By-Step "Invalid Address" Error
You are hashing everything as hex strings. However that is not the proper way to hash stuff. They should all be hashed as bytes (i.e. the raw data), not strings of hexadecimal.