I am writing an EOS smart contract in which need to write the action to generate a unique id from the given array. Array consisting of n number of string elements (UUID). Suppose I pass 10 strings to generate one unique id and vice versa. Id can also be UUID. I am trying sha256 but not confirmed. Can you please suggest me the ways to do this? I am not getting the exact logic behind for generating id. And also how to generate UUID in a smart contract?

  • What's the problem with sha256 or something similar?
    – cmadh
    Jun 6, 2020 at 17:36
  • I am not getting how to pass this dynamic array to sha256. Use each array element to generate a single ID.
    – Varsh
    Jun 8, 2020 at 2:09
  • Can you post parts of your code?
    – cmadh
    Jun 10, 2020 at 21:32


Your Answer

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

Browse other questions tagged or ask your own question.