// address: Smart contract address of app// private key: Secp256K private key// convergence: seceret for a specific userconstarcanaInstance=newarcana.Arcana(address,privateKey,convergence);
constDownloader=arcanaInstance.getDownloader();// did: DID of file which you want to downloadDownloader.download(did);
Access
constAccess=newarcanaInstance.getAccess();
Share a file
// did: DID of file to be shared// publicKey: recipients public key// validity: For how long will be the user able to download the fileAccess.share([did],[publicKey],[validity]);
Revoke access
// did: DID of file from which access is removed// address: Address of the user who's access is getting revokedAccess.revoke(did,address);
Change File owner
// address: new owner's addressAccess.changeFileOwner(did,address);