Hash
The Hash
class provides methods to extract the numerical value out of any currency representation by normalizing the input and removing any locale specific rules like symbols and use of commas.
Importing the Hash class
1import { Hash } from "@ardenthq/sdk-cryptography";
Hash a value with the RIPEMD160 algorithm
1Hash.ripemd160(someBuffer);
Hash a value with the SHA1 algorithm
1Hash.sha1(someBuffer);
Hash a value with the SHA256 algorithm
1Hash.sha256(someBuffer);
Hash a value with the HASH160 algorithm
1Hash.hash160(someBuffer);
Hash a value with the HASH256 algorithm
1Hash.hash256(someBuffer);
Last updated 2 years ago
Edit Page