public static void secp256k1_ecmult_context_build(EcMultContext ctx, EventHandler <Callback> cb) { if (ctx.PreG != null) { return; } var geJ = new GeJ(); Group.secp256k1_gej_set_ge(geJ, Group.Secp256K1GeConstG); var n = 1 << 16 - 2; ctx.PreG = new GeStorage[n]; for (var index = 0; index < n; ++index) { ctx.PreG[index] = new GeStorage(); } EcMult.secp256k1_ecmult_odd_multiples_table_storage_var(n, ctx.PreG, geJ, cb); }
public static void secp256k1_ecmult_context_init(EcMultContext ctx) { ctx.PreG = (GeStorage[])null; }
public ContextStruct() { this.EcMultCtx = new EcMultContext(); this.EcMultGenCtx = new EcmultGenContext(); }