Skip to main content

hash_code

Function hash_code 

Source
pub fn hash_code(code: &str) -> String
Expand description

Compute the SHA-256 hash of canonicalized code.

This is the same hash used in approval tokens. Clients can call this to verify their code will match the token before executing.