remove obsolete patch_vk script

This commit is contained in:
poma 2020-01-18 21:06:39 +07:00
parent ee37151483
commit ec08265740
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
3 changed files with 0 additions and 1259 deletions

File diff suppressed because it is too large Load Diff

@ -1,14 +0,0 @@
{
"name": "patch_vk",
"version": "1.0.0",
"description": "",
"main": "patch_vk.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"snarkjs": "^0.1.20"
}
}

@ -1,9 +0,0 @@
const fs = require('fs');
const {stringifyBigInts, unstringifyBigInts} = require('snarkjs/src/stringifybigint.js');
const BN128 = require('snarkjs/src/bn128');
const bn128 = new BN128();
const json = unstringifyBigInts(JSON.parse(fs.readFileSync('transformed_vk.json')));
json.vk_alfabeta_12 = bn128.F12.affine(bn128.pairing( json.vk_alfa_1 , json.vk_beta_2 ));
fs.writeFileSync('patched_transformed_vk.json', JSON.stringify(stringifyBigInts(json)));