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 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-blockchain-wallet

v0.1.3

Published

Multi-chain blockchain wallet plugin for DeepSeek Harness: mnemonic, address derivation, and signing for EVM, Solana, Bitcoin, TRON, Sui, and BSC.

Readme

dsh-blockchain-wallet

English

多链区块链钱包插件,为 DeepSeek Harness 提供基础钱包能力:助记词生成、地址派生、消息签名,覆盖 EVM(以太坊兼容链)、Solana、Bitcoin、TRON、Sui、BSC。

所有加密操作均为纯同步计算,不持久化、不联网传输任何私钥或助记词。

功能

| 工具 | 动作 | 说明 | |---|---|---| | wallet_mnemonic | generate / validate / seed | 生成 BIP-39 助记词(12/24 词)、校验、派生种子 | | wallet_evm | derive / sign | 派生 EVM 地址与私钥(m/44'/60'/0'/0/0)、personal_sign 签名 | | wallet_solana | derive / sign | 派生 Solana 地址与密钥对(m/44'/501'/0'/0')、ed25519 签名 | | wallet_bitcoin | derive / sign | 派生 BTC 地址(P2WPKH bc1... / P2PKH 1...)、legacy 消息签名 | | wallet_tron | derive / sign | 派生 TRON 地址(base58check T...,m/44'/195'/0'/0/0)、personal_sign 风格签名 | | wallet_sui | derive / sign | 派生 Sui 地址(blake2b-256,m/44'/784'/0'/0'/0')、ed25519 签名 | | wallet_bsc | derive / sign | 派生 BSC 地址(EVM 兼容,m/44'/60'/0'/0/0)、personal_sign 签名 |

安装与挂载

npm install dsh-blockchain-wallet

在目标 profile 的 cordis.patch.yml 中插入一行即可挂载:

- insert:
    - id: wallet
      name: 'dsh-blockchain-wallet'
      config:
        mnemonic: true
        evm: true
        solana: true
        bitcoin: true
        tron: true
        sui: true
        bsc: true

config 中每个开关可独立关闭(默认全开)。

使用示例

生成助记词并派生多链地址

wallet_mnemonic action=generate strength=128
→ { phrase: "sibling final flame quantum ...", valid: true, wordCount: 12 }

wallet_evm action=derive phrase="sibling final flame quantum ..."
→ { address: "0x624f79Ed35f76E8009bEf4E853EA8c6c382F4cB2", privateKey: "0x..." }

wallet_solana action=derive phrase="sibling final flame quantum ..."
→ { address: "FWs6RqwnVEaNVsggAk4wcqmrLTvcYT9XZUWVvAsFJi12", ... }

wallet_bitcoin action=derive phrase="sibling final flame quantum ..."
→ { address: "bc1qfy00wyr4urs24hmp5vxth5jhcqf3vdy0ke6z58", ... }

wallet_tron action=derive phrase="sibling final flame quantum ..."
→ { address: "TUEZSdKsoDHQMeZwihtdoBiN46zxhGWYdH", ... }

wallet_sui action=derive phrase="sibling final flame quantum ..."
→ { address: "0xe4e64369b7720adcd3a52134822536451d12c5d72396a55c6d13ae70dcf2ffa1", ... }

wallet_bsc action=derive phrase="sibling final flame quantum ..."
→ { address: "0x9858EfFD232B4033E47d90003D41EC34EcaEda94", ... }

签名

wallet_evm action=sign privateKey="0x..." message="hello"
→ { signature: "0x..." }

wallet_solana action=sign phrase="..." message="hello"
→ { signature: "<base58>" }

wallet_bitcoin action=sign privateKey="0x..." message="hello"
→ { signature: "<base64>" }

wallet_tron action=sign privateKey="0x..." message="hello"
→ { signature: "0x..." }

wallet_sui action=sign phrase="..." message="hello"
→ { signature: "<base58>" }

wallet_bsc action=sign privateKey="0x..." message="hello"
→ { signature: "0x..." }

安全说明

  • 助记词与私钥是敏感数据。工具返回后请勿写入日志、会话记录或任何持久化存储。
  • 本插件仅做本地计算,不包含交易广播、余额查询等联网能力。
  • 生产使用前请自行审计派生路径与签名格式是否符合目标链的规范。

开发

npm install
npm test        # 运行 test/ 下的单元测试

模块结构

src/
  mnemonic.js   # BIP-39 助记词生成/校验/种子
  evm.js        # EVM 地址派生与签名
  solana.js     # Solana 地址派生与签名
  bitcoin.js    # Bitcoin 地址派生与签名
  tron.js       # TRON 地址派生与签名
  sui.js        # Sui 地址派生与签名
  bsc.js        # BSC 地址派生与签名(复用 EVM)
  index.js      # Cordis 插件入口(工具注册)
cordis.patch.yml  # 挂载配置

依赖

  • @scure/bip39、@scure/bip32 — 助记词与 HD 派生
  • @noble/curves、@noble/hashes — secp256k1 / ed25519 / 哈希
  • @scure/btc-signer、@scure/base — Bitcoin 地址编码
  • @solana/web3.js — Solana 密钥对
  • @deepseek-ai/dsh-tools、@deepseek-ai/cordis — DSH 工具注册

License

MIT © oday0311