2.0.2-beta.0 • Published 9 months ago

@oraichain/private-keys v2.0.2-beta.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

tKey Private Key Module

npm version minzip

The oKey Private Key Module helps you add or remove the and password as a share for tkey. This module is the part of the tKey SDK.

Installation

npm install --save @oraichain/private-keys

Initialization

Import the PrivateKeyModule class from @oraichain/private-keys

import PrivateKeyModule from "@oraichain/private-keys";

Assign the PrivateKeyModule class to a variable

const privateKeyModule = new PrivateKeyModule();

Returns

The PrivateKeyModule class returns an object with the following properties:

declare class PrivateKeyModule implements IModule {
  moduleName: string;
  tbSDK: ITKeyApi;
  privateKeyFormats: IPrivateKeyFormat[];
  constructor(formats: IPrivateKeyFormat[]);
  setModuleReferences(tbSDK: ITKeyApi): void;
  initialize(): Promise<void>;
  setPrivateKey(privateKeyType: string, privateKey?: BN): Promise<void>;
  getPrivateKeys(): Promise<IPrivateKeyStore[]>;
  getAccounts(): Promise<BN[]>;
}

Usage

With the PrivateKeyModule, you've access to the following functions:

Set Private Key

setPrivateKey(privateKeyType: string, privateKey?: BN)

  • privateKeyType: The type of private key to set.
  • privateKey: The private key to set.

Get Private Keys

getPrivateKeys()

Return

  • Promise<IPrivateKeyStore[]>- The private keys stored.
2.2.1

9 months ago

2.2.0

9 months ago

2.1.4

9 months ago

2.1.3

9 months ago

2.1.6

9 months ago

2.1.5

9 months ago

2.1.2

10 months ago

2.1.1

10 months ago

2.1.0

10 months ago

2.0.5

11 months ago

2.0.4

1 year ago

2.0.2-beta.0

2 years ago

2.0.1

2 years ago

2.0.1-beta.2

2 years ago

2.0.0

2 years ago

1.3.1-beta.0

2 years ago

1.3.0

2 years ago

1.2.19-beta.0

2 years ago

1.2.18

2 years ago

1.2.18-beta.2

2 years ago

1.2.18-beta.1

2 years ago

1.2.18-beta.0

2 years ago

1.2.17

2 years ago

1.2.17-beta.4

2 years ago

1.2.17-beta.3

2 years ago

1.2.17-beta.0

2 years ago

1.2.16

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago