Catalog npm
Back to packageRELEASE DETAILS

0.0.7

npm

0xpay-cc-sdk

This SDK enables developers to seamlessly integrate a crypto deposit system into their applications by generating private keys and public addresses using a user's identity (e.g., email, UUID) and a developer-defined password. It supports Ethereum, Solana,

blockchaincryptocyrptocurrencypaymentwallets
Published16 Mar 2024
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

Multi-Blockchain Wallet SDK Documentation

Welcome to the Multi-Blockchain Wallet SDK, an innovative and versatile open-source tool designed for developers across a variety of blockchain platforms. This SDK simplifies the creation of wallets, integration of cryptocurrency payments, and the management of crypto assets by leveraging user-specific information, such as IDs or emails, to generate unique public addresses. With exclusive access to private keys through encrypted passwords, developers can ensure the security of the wallets while enabling real-time monitoring of wallet activities via WebSockets. Currently, the SDK offers support for Ethereum, Solana, and Tron, with plans to expand to additional blockchains.


🌐 Features

  • Wallet Generation: Securely generate private keys and public addresses using a user's unique identifier and a developer-defined password.
  • Blockchain Support:
    • Ethereum, BSC, Polygon, Avalanche,Optimism, Arbitrum,HECO,Harmony,Fantom✅
    • Solana ✅
    • Tron ✅
    • Bitcoin ✅
  • Real-Time Monitoring: Coming Soon.

🛠 Getting Started

To begin using the SDK, follow these steps:

Installation: npm install 0xpay-cc-sdk

Generating key pair from identifier and a defined password

The core functionality of our SDK revolves around the generation of wallet keys for different blockchains. Here's a guide to getting started with each supported blockchain:

Ethereum

  • Function: generateEvmPrivateKeyForUserIdentity
  • Description: Dynamically generates an Ethereum key pair (private and public keys) using a user's identifier and a developer-defined password. This method allows developers to securely manage wallet access while providing the necessary wallet functionalities to users.
  • Parameters:
    • identifier (string): A unique identifier for the user, such as email or username.
    • password (string): A developer-defined password used in the key generation process.
    • iterations (number, optional): The number of iterations for the PBKDF2 key derivation function, defaults to 100,000.
    • keyLength (number, optional): The desired length of the derived key in bytes, defaults to 32.
  • Returns: An EthereumKeyPair object containing the Ethereum address, private key, and both compressed and uncompressed public keys.

Solana

  • Function: generateSolanaPrivateKeyForUserIdentity
  • Description: Generates a Solana key pair from a user's identifier and a password. It produces a private key which is then used to create a keypair, making the public key available to the user.
  • Parameters:
    • identifier (string): The user's unique identifier.
    • password (string): The password combined with the identifier to generate the key.
    • iterations (number, optional): Number of iterations for PBKDF2, optional.
    • keyLength (number, optional): Desired key length, optional.
  • Returns: A SolanaKeyPair object containing the private and public keys.

Tron

  • Function: generateTronPrivateKeyForUserIdentity
  • Description: Similar to the Ethereum and Solana functions, this function generates a Tron key pair using the user's identifier and a password. It is designed to secure wallet creation and management by providing only the public key to the user.
  • Parameters:
    • identifier (string): The user's unique identifier.
    • password (string): The password combined with the identifier to generate the key.
    • iterations (number, optional): Number of iterations for PBKDF2, optional.
    • keyLength (number, optional): Desired key length, optional.
  • Returns: A TronKeyPair object including the private key and public key (address).

Bitcoin

  • Function: generateBitcoinPrivateKeyForUserIdentity
  • Description: Generates a Bitcoin key pair from a user's identifier and a password. It produces a private key which is then used to create a keypair, making the public key available to the user.
  • Parameters:
    • identifier (string): The user's unique identifier.
    • password (string): The password combined with the identifier to generate the key.
    • iterations (number, optional): Number of iterations for PBKDF2, optional.
    • keyLength (number, optional): Desired key length, optional.
  • Returns: A BitcoinKeyPair object containing the private, private WIF and public keys.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^6.11.1runtime
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.9.2runtime
@solana/web3.js
Environment
{
  "local_name": "@solana/web3.js",
  "alias": false,
  "peer_metadata": null
}
^1.91.1runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.4.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a8fbee854e072ef7cb2f93c1845f90abaaf1e631",
  "tarball": "https://registry.npmjs.org/0xpay-cc-sdk/-/0xpay-cc-sdk-0.0.7.tgz",
  "fileCount": 30,
  "integrity": "sha512-wnGzHB7nTLJYPWy9fM77Hi4yS6shv32ClBVKCv8IYq/9XCjTdNYIpvgd4ZvuYrKWnbjUyG9KwzPFFyl7PntnJA==",
  "signatures": [
    {
      "sig": "MEUCIQCbsiM8v6gSU0mrePDGDKHVRA27Tz/Y0OPDWPEipjjghwIgaWm8yBPtWNNVxqCXw7h4jjlU2tF7gyNMlDAZt6414V0=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 24144
}

Repository

PENDING
0xpay-cc/0xpay-cc-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:52 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b071e04490d983e64cfb91476e9a5aed22c8f3f35bf841968fb474cd44f8787c

Other collected versions

0.1.019 Mar0.0.916 Mar0.0.816 Mar0.0.614 Mar0.0.514 Mar0.0.414 MarView all collected versions →