{"size": 746, "ext": "js", "max_stars_repo_path": "Windows-Installation_and_Settup_Script/X.4 BrowserAddonsFastSyncronisationWithoutGoogle/MEGA/mega/naclworker.js", "max_stars_repo_name": "Dian-Yordanov/windows-after-install-script-collection", "max_stars_repo_stars_event_min_datetime": "2020-09-26T01:53:46.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-26T01:53:46.000Z", "max_issues_repo_path": "Windows-Installation_and_Settup_Script/X.4 BrowserAddonsFastSyncronisationWithoutGoogle/MEGA/mega/naclworker.js", "max_issues_repo_name": "Dian-Yordanov/windows-after-install-script-collection", "max_issues_repo_issues_event_min_datetime": "2020-04-04T18:38:21.000Z", "max_issues_repo_issues_event_max_datetime": "2020-11-18T15:09:56.000Z", "max_forks_repo_path": "Windows-Installation_and_Settup_Script/X.4 BrowserAddonsFastSyncronisationWithoutGoogle/MEGA/mega/naclworker.js", "max_forks_repo_name": "Dian-Yordanov/windows-after-install-script-collection", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 21.9411764706, "max_line_length": 84, "alphanum_fraction": 0.4839142091}
window = this; // required, so that nacl-fast.js can be loaded as-is in a worker

importScripts('nacl-fast.js');

var have_ab = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';

postMessage = self.webkitPostMessage || self.postMessage;

onmessage = function(e)
{

    if (e.data.length && e.data.splice)
    {
        var arr = e.data;

        if (arr[0] === 'verify') {
            postMessage(
                nacl.sign.detached.verify(
                    arr[1],
                    arr[2],
                    arr[3]
                )
            );
        }
        else {
            console.error("Unknown op: ", arr[0]);
        }
    }
    else
    {
        console.error("Invalid message: ", e.data);
    }
};
