mirror of
https://github.com/arnaucube/circomlib.git
synced 2026-02-06 18:56:43 +01:00
Change bases and IV
This commit is contained in:
@@ -8,7 +8,7 @@ const mimcjs = require("../src/mimc7.js");
|
||||
const assert = chai.assert;
|
||||
const log = (msg) => { if (process.env.MOCHA_VERBOSE) console.log(msg); };
|
||||
|
||||
const SEED = "iden3_mimc";
|
||||
const SEED = "mimc";
|
||||
|
||||
describe("MiMC Smart contract test", () => {
|
||||
let testrpc;
|
||||
|
||||
@@ -11,16 +11,11 @@ const babyJub = require("../src/babyjub.js");
|
||||
|
||||
const PBASE =
|
||||
[
|
||||
[ bigInt( "6842263847932328569390632736104801120816056295876316310227967232893658007436"),
|
||||
bigInt("10520112236148895828506510766039255961372323270202387671483666293012156799229")],
|
||||
[ bigInt( "7512553369533424708326990019377586455744651641787163924108944444109352325495"),
|
||||
bigInt( "242060483180498555826438209654403949979206323274480625257315595534333598496")],
|
||||
[ bigInt( "480315709862415282411588615813248553518720286084247594626493599605932342246"),
|
||||
bigInt("15016559215090999873142530067666085992648246670781771102893391410239675444873")],
|
||||
[ bigInt( "8311398801616893527636419786153024398643144699386228070202625261657263599049"),
|
||||
bigInt("11125962584728296601438821974884453267303385157860713577195820780853779600315")],
|
||||
[ bigInt( "1924118814882677827825936037840538695314492559747259292440881566152665343441"),
|
||||
bigInt("17232376423406964731689089286495480735310130852288107159412732879983310795144")]
|
||||
[bigInt("10457101036533406547632367118273992217979173478358440826365724437999023779287"),bigInt("19824078218392094440610104313265183977899662750282163392862422243483260492317")],
|
||||
[bigInt("2671756056509184035029146175565761955751135805354291559563293617232983272177"),bigInt("2663205510731142763556352975002641716101654201788071096152948830924149045094")],
|
||||
[bigInt("5802099305472655231388284418920769829666717045250560929368476121199858275951"),bigInt("5980429700218124965372158798884772646841287887664001482443826541541529227896")],
|
||||
[bigInt("7107336197374528537877327281242680114152313102022415488494307685842428166594"),bigInt("2857869773864086953506483169737724679646433914307247183624878062391496185654")],
|
||||
[bigInt("20265828622013100949498132415626198973119240347465898028410217039057588424236"),bigInt("1160461593266035632937973507065134938065359936056410650153315956301179689506")]
|
||||
];
|
||||
|
||||
describe("Double Pedersen test", function() {
|
||||
|
||||
Reference in New Issue
Block a user