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

@abcwalletio/bitcoin

v1.0.0

Published

ABC WaaS Bitcoin adapter — MPC-based public key and PSBT (BIP-174) signing for bitcoinjs-lib (secp256k1)

Readme

@abcwalletio/bitcoin

ABC WaaS SDK의 Bitcoin 어댑터입니다. Bitcoin 생태계는 월렛 표준이 파편화되어 있어 독자 인터페이스로 공개키 조회와 PSBT 서명 기능을 노출합니다. 사용자가 bitcoinjs-lib와 조합해 UTXO 관리 및 트랜잭션 조립을 수행합니다.

Installation

pnpm add @abcwalletio/bitcoin @abcwalletio/core bitcoinjs-lib

Peer Dependencies

  • @abcwalletio/core
  • bitcoinjs-lib >=6.0.0

Quick Start

import { createWaasSDK, LocalStorageAdapter } from '@abcwalletio/core';
import { AbcBitcoinAdapter } from '@abcwalletio/bitcoin';
import { payments, networks } from 'bitcoinjs-lib';

const sdk = await createWaasSDK({
  storage: new LocalStorageAdapter(),
  auth: { v2: { clientId: '...', clientSecret: '...' } },
});

// Bitcoin은 secp256k1 키 사용
await sdk.mpc.generateKeyShare('secp256k1', 'password');

const adapter = await AbcBitcoinAdapter.create({
  sdk,
  requestPassword: async () => prompt('MPC 비밀번호?') ?? '',
});

// bitcoinjs-lib로 주소 도출 (예: P2WPKH)
const { address } = payments.p2wpkh({
  pubkey: adapter.getPublicKeyBuffer(),
  network: networks.bitcoin,
});

API

AbcBitcoinAdapter.create(config)

interface AbcBitcoinAdapterConfig {
  sdk: WaasSDK;
  requestPassword: () => Promise<string>;
  keyId?: string;  // 생략 시 sdk.mpc.getDefaultKeyId('secp256k1') 자동 조회
}

메서드

| 메서드 | 설명 | |--------|------| | getPublicKey() | 원시 공개키 hex 반환 | | getPublicKeyBuffer() | 공개키 Bufferbitcoinjs-lib가 요구하는 형식 | | getUncompressedPublicKey() | 65바이트 비압축 공개키 hex (04 prefix) | | signMessage(hashHex) | 단일 해시 서명 (65바이트: r + s + v) | | signPsbt(sighashes) | BIP 174 PSBT 서명 — 여러 입력의 sighash를 일괄 서명하며 password는 1회만 요청 |

PSBT 예제

// PSBT 조립 (bitcoinjs-lib)
const psbt = new Psbt({ network });
psbt.addInput({ ... });
psbt.addOutput({ ... });

// 각 입력의 sighash를 구해서 일괄 서명 요청
const sighashes = psbt.data.inputs.map((_, i) =>
  psbt.__CACHE__.__TX.hashForWitnessV0(i, ...).toString('hex'),
);
const signatures = await adapter.signPsbt(sighashes);

// 각 입력에 서명 적용
signatures.forEach((sig, i) => {
  psbt.updateInput(i, { partialSig: [{ pubkey: adapter.getPublicKeyBuffer(), signature: Buffer.from(sig, 'hex') }] });
});

License

MIT — Copyright (c) 2026 Ahnlab Blockchain Company