hasMedia(hashAlgorithm:hash:)

Check whether a media blob is already stored

func hasMedia(hashAlgorithm: String, hash: Array<UInt8>) async -> Bool

Parameters

hashAlgorithm

hash algorithm for the content ID

hash

raw hash bytes

Return Value

Promise resolving to true when the media exists