Rename StatefulDemo, move socket handling to useSocket, Emboldened skeleton

This commit is contained in:
2024-12-23 16:14:11 -06:00
parent 9a54104bdd
commit 9315fbd985
5 changed files with 99 additions and 61 deletions

View File

@@ -27,6 +27,7 @@ fn main() {
}
// TODO: Use token to make request
// Check the hash of the value
let value_hash = sha2::Sha256::digest(key_data.value.as_bytes());
let hash_match = hex::encode(value_hash) == key_data.value_hash;