node-blockchain icon indicating copy to clipboard operation
node-blockchain copied to clipboard

JSON.stringify order

Open GlebIrovich opened this issue 4 years ago • 0 comments

First of all thanks for the content and sharing the code!

I have one question though. Class is a js object, where fields are not ordered. If you produce a string from the Transaction with JSON.stringify you cannot ensure consistent order, right? So it might be that same transaction produces different hashes. Would it make more sense to convert this to an array and then convert to string?

GlebIrovich avatar Mar 04 '21 11:03 GlebIrovich