getOrderHash method
Returns the generated order hash for a given value.
This method takes a value as input, computes its SHA-256 hash, encodes the hash using base58 encoding with a base of 36, and constructs the order hash with the prefix "OR".
Parameters:
- value: The value for which the order hash needs to be generated.
Returns: A string representing the generated order hash.
Implementation
String getOrderHash(String value) {
var sha256 = getSha256HashToString(value);
sha256 = base58Encode(sha256, BigInt.from(36));
return "OR$sha256";
}