3 ms·
This code is equivalent.
by ctz 9y ago
This code is equivalent.
- johnhenry 9y agoNot entirely... Depending upon the types of "timestamp", "data", "index", and "previousHash", the value, "timestamp+data+index+previousHash", may be interpreted as a number or a string, affecting the final hash. Splitting it up prevents this uncertainty.