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 Answer 1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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