getCid(file: File, exportedKey?: string)
import {getCid} from "@eueno/lib-browser";
const getData = async () => {
const file = files[0];
const exportedKey = "4R2Bw-kz9DnWA5FEcoopIsPhZZ5PswLBvtPwll6ejkU"
const response = await getCid(file, exportedKey);
console.log(response);
};
{
data: {
cidFile: "QmWYXyKrnpd94hVr4rh84q3MLfLfSMrk1MmuAW2Uj3Dv6X"
cidTorrentFile: "QmNxPpQkyK8x1ne3izWY7VRKw8LY7j4tVfaGfo5CMuuNpK"
},
status: 200
}