spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
85 stars 14 forks source link

Adopt SHA3 & drop usage of BLAKE3 #495

Open neysofu opened 2 years ago

neysofu commented 2 years ago

SVM currently uses BLAKE3 in all places where we need a cryptographic hash function. I believe go-spacemesh uses SHA3, which is quite a bit slower but probably fast enough for our needs. I suggest replacing BLAKE3 with SHA3 everywhere within the SVM so that both the node and SVM can perform account and template address computation using SHA3.