4

Given that one can write chaincode in JavaScript or Go and freely call random methods provided by the language libraries, how does the network handle the randomness?

1

Hyperledger fabric works in the order of Execute Order and Validate.So Execution steps is done in Endorser so execution is done with endorsement policy which is defined and it also removes randomization to avoid statelessness.

Next the Ordering of transaction is done with the help of Orderer.

Finally Validation is done with the committer to avoid double spending.This is basically to check the integrity of the transaction.

  • Can you please give me some more resources, to read up on the topic? – Shocky2 Oct 30 '18 at 7:56
  • medium.com/swlh/… @Shocky2 Read the medium articles to get more insights on this – VforVendetta Oct 31 '18 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.