@oraichain/storage-layer-torus
TypeScript icon, indicating that this package has built-in type declarations

1.3.1-beta.0 • Public • Published

tKey Torus Storage Layer

npm version minzip

A storage layer is needed to store and recall the metadata information of the shares generated so as to be able to recover the private key from the tKeys generated. This SDK gives you the ability to get and set the Metadata for the various shares generated.

Installation

npm install --save @oraichain/storage-layer-torus

Instantiation

Import the TorusStorageLayer class from @oraichain/storage-layer-torus

import TorusStorageLayer from "@oraichain/storage-layer-torus";

Assign the TorusStorageLayer class to a variable

const storageLayer = new TorusStorageLayer(TorusStorageLayerArgs);

Parameters

declare type TorusStorageLayerArgs = {
  enableLogging?: boolean;
  hostUrl?: string; // use `https://metadata.social-login.orai.io` for connecting to the Torus Metadata Server
  serverTimeOffset?: number;
};

Example

import TorusStorageLayer from "@oraichain/storage-layer-torus";

const storageLayer = new TorusStorageLayer({ hostUrl: "https://metadata.social-login.orai.io" });

Readme

Keywords

none

Package Sidebar

Install

npm i @oraichain/storage-layer-torus

Weekly Downloads

0

Version

1.3.1-beta.0

License

MIT

Unpacked Size

2.52 MB

Total Files

18

Last publish

Collaborators

  • oraichain_official