🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@i3m/bok-wallet

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@i3m/bok-wallet

An implementation of the base wallet using a bag of keys (keys are independently created at random).

latest
Source
npmnpm
Version
2.6.1
Version published
Weekly downloads
703
35050%
Maintainers
3
Weekly downloads
 
Created
Source

License: EUPL_1.2 Contributor Covenant JavaScript Style Guide

@i3m/bok-wallet

An implementation of the base wallet using a bag of keys (keys are independently created at random).. It extends the BaseWallet class defined in the @i3m/base-wallet package. The main differences with the @i3m/sw-wallet is that an @i3m/bok-wallet cannot be regenerated with a seed (or mnemonic words), but can import and use arbitrary keys.

Usage

@i3m/bok-wallet can be imported to your project with npm:

npm install @i3m/bok-wallet

Then either require (Node.js CJS):

const bokWallet = require('@i3m/bok-wallet')

or import (JavaScript ES module):

import * as bokWallet from '@i3m/bok-wallet'

The appropriate version (either cjs or esm) should be automatically chosen when importing. However, if your bundler does not import the appropriate module version, you can force it to use a specific one by just importing one of the followings:

  • @i3m/bok-wallet/dist/cjs/index.node: for Node.js CJS module
  • @i3m/bok-wallet/dist/esm/index.node: for Node.js ESM module

If you are coding TypeScript, types will not be automatically detected when using the specific versions. You can easily get the types in by creating adding to a types declaration file (.d.ts) the following line:

declare module '@i3m/bok-wallet/dist/esm/index.browser' // use the specific file you were importing

API reference documentation

Check the API

Keywords

wallet

FAQs

Package last updated on 04 May 2023

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