npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

swtc-factory

v1.2.10

Published

swtc base lib factory

Downloads

57

Readme

The SWTC Base Factory JavaScript Library

swtc-factory == jcc-jingtum-base-lib

with enhancements

  1. supports more wallets for different chains
    • ripple, bitcoin
    • call, stream
    • jingtum, bizain
  2. supports ed25519 algorithm for seed
  3. typescript friendly since v1.2

usages

> .load test.js
const Wallet = require('swtc-factory').Wallet
const SwtcChains = require('swtc-chains')
var wallet
SwtcChains.forEach( chain => {
        let token = chain.currency
	console.log(`\t... with secp256k1 ...`)
	wallet = Wallet.generate(token)
	console.log(`${token} address:\t${wallet.address}`)
	console.log(`${token} secret:\t${wallet.secret}`)
	console.log(`\t... with ed25519 ...`)
	wallet = Wallet.generate(token, {algorithm: 'ed25519'})
	console.log(`${token} address:\t${wallet.address}`)
	console.log(`${token} secret:\t${wallet.secret}`)
})

	... with secp256k1 ...
BTC address:	16kXez5CogMiYjhYZt4ypiBKMdZMQLe2Kc
BTC secret:	35MDfeFj9ZF6WCYXpPcAbzw3Ymt65
	... with ed25519 ...
BTC address:	18r5HQz1MEhK3Figc66TnWfPYoKpRtkfmw
BTC secret:	3FdVDT7tbqK5uRny3jCSaN7pvm5ai5m
	... with secp256k1 ...
XRP address:	rsmSNgwLfx8s9GwKEarcWxsFuWxXUVzCJy
XRP secret:	snbratgKcMgQhfKQ8P4m7bsrXhmkQ
	... with ed25519 ...
XRP address:	rwrKqUvoycV9gK4DuHbESF39NnVXjMvor7
XRP secret:	sEd7kFD1erA33sVPsKNbqAaGp6NoAVE
	... with secp256k1 ...
XLM address:	gwErV7U7pKZRfpzHNZzVFQgHSdaYwpcENv
XLM secret:	paaoyoG2pCuVgtxduppVShVgN98VX
	... with ed25519 ...
XLM address:	gKpWGStT7EJ46Ze1TvS6A3EWhtvaATQT1K
XLM secret:	pEdSSeprhmqrtCcAvSRWrdAM6kcjw47
	... with secp256k1 ...
CALL address:	cHG4tRGC3ihGbqWY5fnoh1Fwhy2bJER5HP
CALL secret:	sh9Rta1dmEayh8o2ZftBYzb4kmmtZ
	... with ed25519 ...
CALL address:	cwmfZvrBsTuUV9tUhggVEVvFk63wm8kbo7
CALL secret:	sEdTvPQE5kFVta8f5AxBLZKZ8Z3XCmW
	... with secp256k1 ...
STM address:	v4U6Zw3EuDTuL6yyxmAgKpijAcXZwBKEAc
STM secret:	shuMxfHs7xKAkX4LYAkggnrzSduqb
	... with ed25519 ...
STM address:	vwHU7sV56ZffeVBc2ijXqztKGoiKX6TdFh
STM secret:	sEdVGc1nGor7HmmqfjN9bb1psyCvnjr
	... with secp256k1 ...
SWT address:	jfnxW6tgzuUEMSU8n1zi5PpP3rhX6XAjVo
SWT secret:	shaRNXjy6aDGbn6a8MgCpMcJCE2om
	... with ed25519 ...
SWT address:	jpMoHNKUSk1bxDTozCXvrbubr4CExAGkYP
SWT secret:	sEdSCykKdVPiREXCkek5ARSsE4PxmJ3
	... with secp256k1 ...
BWT address:	bHU4ap7ANtWihUoJ1qhABn1imtK4Jigain
BWT secret:	saNaU2fEHtRY4Vx5oQiWS15n2Hizz
	... with ed25519 ...
BWT address:	bShESv4x2Bj7XXLxav9FWD85AP4CLf44X
BWT secret:	sEdVMW7dRrD1qU7uYhbNRAkgKUx6MaU