./
├── app/
│ ├── backend/
│ │ ├── src/
│ │ ├── typings/
│ │ └── ...
│ └── frontend/
│ ├── src/
│ ├── typings/
│ └── ...
├── fabric/
│ ├── chaincode/
│ │ ├── src/
│ │ ├── typings/
│ │ └── ...
│ └── frontend/
│ ├── src/
│ ├── typings/
│ └── ...
└── lib/
├── mcl
└── ...
GET /auth/generators
interface Response {
ok: true;
payload: {
g: string;
h: string;
}
}
GET /auth/pks
interface Response {
ok: true;
payload: {
pks: string[];
}
}
POST /auth/reEncrypt/:id/:to
interface Body {
nonce: string;
signature: string;
payload: {
[tag: string]: string;
};
}
interface Response {
ok: true;
}
POST /user/:id
interface Body {
nonce: string;
signature: string;
payload: {
publicKey: string;
};
}
interface Response {
ok: true;
}
POST /user/:id/backup
interface Body {
nonce: string;
signature: string;
payload: {
[pk: string]: {
rk: {
[tag: string]: string;
};
email: string;
};
};
}
interface Response {
ok: true;
}
POST /user/:id/data
interface Body {
nonce: string;
signature: string;
payload: {
[tag: string]: {
key: {
ca0: string;
ca1: string;
};
data: string;
iv: string;
};
};
}
interface Response {
ok: true;
}
GET /user/:id/data
interface Response {
ok: true;
payload: {
[tag: string]: {
key: {
ca0: string;
ca1: string;
};
data: string;
iv: string;
};
};
}
GET /user/:id/code/:email
interface Response {
ok: true;
}
POST /user/:id/code
interface Body {
payload: {
codes: string[];
};
}
interface Response {
ok: true;
payload: {
data: string[];
}
}
cd fabric/network/
./network.sh up
./network.sh createChannel
- prerequisites
cd ../chaincode/
yarn install
cd ../network
- then
./network.sh deployCC -n PreDAuth
- prerequisites
yarn install
- then
yarn cleanup # only needed after restart fabric network
yarn start
URL: http://127.0.0.1:4000
- prerequisites
yarn install
- then
yarn start
URL: http://127.0.0.1:3000
- prerequisites
yarn install
- then
yarn start
URL: http://127.0.0.1:4001
- prerequisites
yarn install
- then
yarn start
URL: http://127.0.0.1:3001