Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tkey-mpc/private-keys

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tkey-mpc/private-keys

TKey Private Keys Module

  • 10.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

tKey Private Key Module

npm version minzip

The tKey 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 @tkey-mpc/private-keys

Initialization

Import the PrivateKeyModule class from @tkey-mpc/private-keys
import PrivateKeyModule from "@tkey-mpc/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.

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc