1.0.5 • Published 5 years ago

talent-lib v1.0.5

Weekly downloads
6
License
-
Repository
github
Last release
5 years ago

talent-lib

The Smart Talent dApp Library

Build CPP Source with emmake

  1. Install emscripten for emmake

  2. Install Submodule including CryptoPP : git submodule update --init --recursive

  3. Build Submodule with WebAssembly Compiler : npm run make:deps
  4. Build WebAssembly Source : npm run make

Normal Usage

For normal usage, WebAssembly JSON should be included in src/lib/cryptolib.json. Developers can just call the json and use it as Binary String File.

  1. Build The Library npm run build
  2. Uint Test for The Library npm test

Library Basic Functions

  • Elliptic Curve KeyPair Generation
  • ECDSA
  • ECIES
  • SHA256
  • Random Bytes
  • AES256

Library High Level Functions

  • Create Free Data with Signature
  • Create Encrypted Data with Signature
  • Create Sign Request Data
  • Create Signature From Sign Request Data
  • Create Data Response

Data Format

  • Hash of Data = DH
  • Data Encryption Key = DK
  • Owner Key = PK
  • Notary Key = NK
  • Request Key = RK
  1. Free Data: { payload, PK signature }
  2. Encrypted Data: { payload, enc(PK, DK), sign(PK, DH) }
  3. Signing Request: { enc(NK, DK) }
  4. Data Response: { enc(RK, DK), sign(NK / PK, DK) }
1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago