0.0.13 • Published 4 years ago

e3db-client-interface v0.0.13

Weekly downloads
145
License
proprietary
Repository
github
Last release
4 years ago

E3DB JavaScript SDK Client Interface

The Tozny End-to-End Encrypted Database (E3DB) is a storage platform with powerful sharing and consent management features.

Read more on our blog.

This repository contains interfaces and code providing the core of the Tozny platform JS SDKs. It defines types, API behaviors, and more to keep interactions consistent across the various code bases, yet allowing each SDK to define the cryptography layer and any context specific helpers for use in the target environment.

Use

Import this package

npm install --save e3db-client-interface

Create a concrete crypto implementation.

// crypto.js
import { Crypto as BaseCrypto } from 'e3db-client-interface'

export default class Crypto extends BaseCrypto{
  // implement the crypto for each of the methods.
}

Create a concrete client implementation

// client.js
import Crypto from './crypto'
import { Client as ClientBase } from 'e3db-client-interface'

// instantiate a concrete crypto instance
const crypto = new Crypto()

export default class Client {
  // overload the getter for crypto to return the concrete instance
  static get crypto() {
    return crypto
  }
}

Finally to make the standard Tozny platform primitives available from the implementing package by exporting the constructors and helpers.

// index.js
export { default as Client } from './client'
export { Config, types } from 'e3db-client-interface'

// optionally export context specific helpers
export { default as helpers } from './helpers'

Terms of Service

Your use of E3DB must abide by our Terms of Service, as detailed in the linked document.

2.0.0-alpha.3

4 years ago

2.0.0-alpha.2

4 years ago

2.0.0-alpha.1

5 years ago

2.0.0-alpha.0

5 years ago

1.0.1-alpha.13

5 years ago

1.0.1-alpha.12

5 years ago

0.3.0-alpha.11

5 years ago

0.3.0-alpha.10

5 years ago

0.3.0-alpha.9

5 years ago

0.3.0-alpha.8

5 years ago

0.3.0-alpha.7

5 years ago

0.3.0-alpha.6

5 years ago

0.3.0-alpha.5

5 years ago

0.3.0-alpha.4

5 years ago

0.3.0-alpha.3

5 years ago

0.3.0-alpha.2

5 years ago

0.3.0-alpha.1

5 years ago

0.3.0-alpha.0

5 years ago

0.2.0-alpha.1

5 years ago

0.2.0-alpha.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago