Skip to content
This repository has been archived by the owner. It is now read-only.
/ tide-js Public archive

A Javascript library to create and assemble accounts in the Tide ecosystem.

License

Notifications You must be signed in to change notification settings

tide-foundation/tide-js

Repository files navigation

tide-js

A Javascript library to create and assemble accounts in the Tide ecosystem.

npm install tide-js

Initialization

import Tide from 'tide-js';
const tide = new Tide(['ork-endpoint-1','ork-endpoint-2'], 256); // Ork nodes, encryption strength

Creating an account

const result = await tide.postCredentials('username', 'password');

Assembling an account

const account = await tide.getCredentials('username', 'password'));

Encryption & decryption

const secretMsg = 'So long, and thanks for all the fish.';
const encrypted = await tide.processEncryption(true, secretMsg, keys.pub); // Encrypt, data, key

const decrypted = await tide.processEncryption(false, encrypted, keys.priv);

About

A Javascript library to create and assemble accounts in the Tide ecosystem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •