SDK reference · Rails
contentHash
contentHash in @provenanceauth/rails/deals, Rails. Sha256 (hex) of delivered bytes or text.
Signature
contentHash(content: string | Uint8Array): Promise<string>Parameters
contentstring | Uint8ArrayRequired
Returns
Promise<string>
HTTP operation
Runs locally, with no request to the API.