Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

dedis-students/student_17_cothority_protobuf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CothorityProtoBuf

Implementation of messages of the Cothority for protobuf protocl

How to build

ES6 compilation

npm i
npm i -g rollup
node build_proto.js # transpile the *.proto files
rollup src/index.js --output dist/cothority-messages.js

IIFE compilation

npm i
node build_proto.js
node build.js

How to use

use the file dist/cothority-messages.js. It is an ES6 module so you need to use Babel or an other transpiler. Then you can simply use

import CothorityMessages from './dist/cothority-messages'

CothorityMessages.createSignatureRequest(...);

In the case of the IIFE compilation you can import the scripts in <script></script> tag using both bundle.js and protobuf.js

About

Implementation of messages of the Cothority for protobuf protocl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 83.0%
  • Protocol Buffer 17.0%