Zero knowledge proof

In the past year, there have been many applications of zero knowledge proof. In this tutorial, we will first learn the basic concept of zero knowledge proof, use circle to build arithmetic circuit, use snarkjs to realize the whole process of zero knowledge proof, and use these knowledge to realize the two-tier expansion scheme zk rollup. Block ...

Posted on Mon, 25 May 2020 06:50:39 -0700 by BSlepkov

Java Web IDE implemented by Vue codemirror + java compiler

background Recently, my colleague told me a very interesting requirement: let the user (in the application scenario, generally for other developers) fill in the Java code snippet. The content of the code snippet is the inheritance class of the template class that has been specified, and implement the method of template class definition. Our ...

Posted on Sat, 23 May 2020 21:44:37 -0700 by jh21236

New features of JDK 1.8 -- functional interface

In the last article, we introduced the following new features of JDK 1.8. 1.Lambda expression 2. Method reference 3. Functional interface 4. Default method 5.Stream 6.Optional 7. Nansharm JavaScript engine 8. New date time API 9.Base64 Before that, I learned the first two Lambda expressions, method references, and this article is about function ...

Posted on Fri, 22 May 2020 05:43:03 -0700 by False

Submission of php form form

php forms inserting forms into Web pages Insert the form in the normal WEB page as follows: a relatively complete form will be created here to show all the elements and attributes in < form >. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> </head> < ...

Posted on Fri, 22 May 2020 01:05:11 -0700 by roba59

9-Brief analysis of NodeEnvironmentPlugin module for webpack source

Introducing the construction of Compiler is rather interesting. It's better to go ahead and explain it when you use Compiler. This section focuses on this line of code: // No matter here compiler = new Compiler(); compiler.context = options.context; compiler.options = options; // Look here new NodeEnvironmentPlugin().apply(compiler); This con ...

Posted on Thu, 21 May 2020 10:00:36 -0700 by makeshift_theory

New feature of JDK 1.8 -- method reference

In the last article, we introduced the following new features of JDK 1.8. 1.Lambda expression 2. Method reference 3. Functional interface 4. Default method 5.Stream 6.Optional 7. Nansharm JavaScript engine 8. New date time API 9.Base64 And learned the most important features of JDK 1.8-- Lambda expression , a reference to this learning method. ...

Posted on Thu, 21 May 2020 09:22:27 -0700 by chick3n

Vue component communication values (parent-child component communication / brother component communication / cross level communication)

First: Props / $emit Father child Props // Parent component<template> <div id="app"> <users v-bind:users="users"></users>//The former is easy to call for subcomponents, while the latter needs to pass data names </div> </template> <script> import Users from "./components/Users" export default { ...

Posted on Wed, 20 May 2020 02:52:06 -0700 by oc1000

Eggjs Learning Notes Day 33: eggjs creates a base class base.js controller, configures session, and creates a tool.js service (svg-captcha verification code)

1. Create base classes. The role of base classes: for example, login success and failure, administrator new edit success and failure, role new edit success and failure, there are success callbacks and failure callbacks, such as showing a successful information failure, these things are common.So encapsulated with base classes, other classes ca ...

Posted on Mon, 18 May 2020 09:53:22 -0700 by wkerplunk

Encapsulating the Promise version of readFile

Write in front We all know that there are two types of file reading fs.readFileSync(); / / read synchronously fs.readFile(); / / asynchronous read Copy code Promise is a solution of asynchronous programming. Can we encapsulate a promise version of readFile? Intron Let's take a look at teacher Ruan Yifeng's explanation that javascript is ...

Posted on Sun, 17 May 2020 17:41:03 -0700 by wes007

jquery seamless rotation

Idea: first, static layout, setting a variable as the subscript, using jquery's selector to get all the li clicked, get the width, Then write the encapsulation function on the next page (subscript + +, judge whether it is the last one according to the current subscript, (do some animation effects, stop the animation onc ...

Posted on Sat, 16 May 2020 08:43:44 -0700 by SoireeExtreme