Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
la implementación de blockchain no funciona mientras se usa sha256

Estoy usando este código para implementar blockchain.

 const sha256 =require('crypto-js/sha256'); class block{ constructor(timestamp,nonce,value,prevhash) { this.timestamp=timestamp; this.nonce=nonce; this.value=value; this.prevhash=prevhash; } calculate(){ return String(sha256(this.timestamp,this.nonce,this.value,this.prevhash)); } } const block1=new block(22,345,"changebro",345); const block2 =new block(4385,545,45,2) console.log(block1.calculate()); console.log(block1); console.log(block2.calculate()); console.log(block2);

por qué el ans para ambos viene igual.

para ambos obtengo lo mismo y 4ea5c508a6566e76240543f8feb06fd457777be39549c4016436afda65d2330e

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!