Code a Blockchain Application in Rust |

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 11

  • @Lnhdr_Sud
    @Lnhdr_Sud 4 місяці тому +1

    Awesome tutorial Bro! Which VSCode extentions are you using during this lesson?

    • @BekBrace
      @BekBrace  4 місяці тому

      Frankly I don't remember 😂

  • @Cryptopunkstar
    @Cryptopunkstar 6 місяців тому +1

    Thank you so much 💪Amazing 🎉

    • @BekBrace
      @BekBrace  6 місяців тому

      You're welcome, my friend

  • @notbarbara2647
    @notbarbara2647 3 місяці тому

    I am just learning the language, but why did you have "&mut self" as a parameter in the calculate_hash function? You're not mutating self in that function, so I suppose it's better to just use "&self" right?

    • @BekBrace
      @BekBrace  2 місяці тому +1

      You're totally right !! If you're not mutating the self inside the calculate_hash function, you should use &self instead of &mut self. Using &mut self indicates that the function intends to mutate the state of the instance, but if no mutation happens, &self is sufficient and more appropriate, I probably forgot to remove it, or i was testing something in original code and forgot it :) Nice catch !

  • @dog4ik
    @dog4ik 6 місяців тому

    why can't we derive hash implementation for block?

    • @BekBrace
      @BekBrace  6 місяців тому +1

      deriving a hash implementation for a block is challenging because hashing requires unique, consistent algorithms to ensure security and immutability, which can't be simply inferred or derived automatically.

  • @ojochegbe_
    @ojochegbe_ 5 місяців тому

    Ooops gotta go back and learn some more bout blockchain

    • @BekBrace
      @BekBrace  3 місяці тому

      That's a wise thing to say

  • @notbarbara2647
    @notbarbara2647 3 місяці тому

    Github repo?