We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify that the calculated hash of a vertex match ts-topology:
vertexData := map[string]interface{}{ "operation": vertex.Operation, "deps": vertex.Dependencies, "nodeId": vertex.NodeId, } stringified, err := json.Marshal(vertexData) if err != nil { k.logger.Error("failed to marshal vertex with hash " + vertex.Hash) continue } computedHash := sha256.Sum256(stringified)
vs
function computeHash<T>( nodeId: string, operation: Operation, deps: Hash[], ): Hash { const serialized = JSON.stringify({ operation, deps, nodeId }); const hash = crypto.createHash("sha256").update(serialized).digest("hex"); return hash; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Verify that the calculated hash of a vertex match ts-topology:
vs
The text was updated successfully, but these errors were encountered: