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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tomo-inc/cubist-sig-sdk

v1.1.1

Published

A TypeScript SDK for multi-chain cryptocurrency signing operations using CubeSigner's secure key management infrastructure.

Readme

Cubist Signature SDK

A TypeScript SDK for multi-chain cryptocurrency signing operations using CubeSigner's secure key management infrastructure.

Features

  • Multi-chain Support: Bitcoin, Ethereum, Solana, Sui, TON, TRON, Cosmos, Dogecoin, and Move-based chains
  • Secure Key Management: Powered by CubeSigner's enterprise-grade key infrastructure
  • Multiple Address Types: Support for various Bitcoin address formats (P2PKH, P2WPKH, P2TR, P2SH)
  • OIDC Authentication: Seamless integration with OpenID Connect providers
  • TypeScript First: Full type safety and excellent developer experience

Installation

npm install @tomo-inc/cubist-sig-sdk

Quick Start

1. Authentication

import { getOidcClient, getSessionKeys } from '@tomo-inc/cubist-sig-sdk'

// Create OIDC session
const client = await getOidcClient(
  oidcToken,           // Your OIDC token
  'production',        // Environment: 'production' | 'staging'
  3600                 // Session expiration in seconds
)

// Get available keys and addresses
const sessionInfo = await getSessionKeys(client.sessionData())
console.log(sessionInfo.keys) // Available blockchain addresses

// Get a specific key for signing
const key = await client.org().getKey('Key#<key_id>')

2. Ethereum Signing

import { signEvmTransaction, signEvmMessage } from '@tomo-inc/cubist-sig-sdk'

// Sign transaction
const signedTx = await signEvmTransaction(
  key,                 // CubeSigner Key object
  {
    to: '0x742d35cc6634c0532925a3b8d4e6cd8e9f6de19e',
    value: '1000000000000000000', // 1 ETH in wei
    gas: '21000'
  },
  1,                   // Chain ID (1 for Ethereum mainnet)
  approveSession       // Approval session for MFA
)

// Sign message
const signature = await signEvmMessage(
  key,                 // CubeSigner Key object
  'Hello, World!',     // Message to sign
  approveSession       // Approval session for MFA
)

3. Bitcoin Signing

import { signPsbt, signBtcMessage } from '@tomo-inc/cubist-sig-sdk'

// Sign PSBT (Partially Signed Bitcoin Transaction)
const signedPsbt = await signPsbt(
  key,                 // CubeSigner Key object
  psbtBase64,          // PSBT in base64 format
  approveSession       // Approval session for MFA
)

// Sign Bitcoin message
const signature = await signBtcMessage(
  key,                 // CubeSigner Key object
  'Hello Bitcoin!',    // Message to sign
  userInfo,            // User session info
  false,               // isP2sh flag
  approveSession       // Approval session for MFA
)

4. Other Chains

// Solana
import { signSolanaTransaction } from '@tomo-inc/cubist-sig-sdk'
const signedTx = await signSolanaTransaction(key, rawTransaction, approveSession)

// Sui  
import { signSuiTransaction } from '@tomo-inc/cubist-sig-sdk'
const signedTx = await signSuiTransaction(key, transaction, rpcUrl, approveSession)

// TON
import { signTonTransaction } from '@tomo-inc/cubist-sig-sdk'
const signedTx = await signTonTransaction(key, signingMessageBoc, stateInitBoc, isTestnet, approveSession)

// Cosmos
import { signCosmosTransaction } from '@tomo-inc/cubist-sig-sdk'
const signedTx = await signCosmosTransaction(key, signDoc, approveSession)

Supported Chains

| Chain | Address Types | Features | |-------|---------------|----------| | Bitcoin | P2PKH, P2WPKH, P2TR, P2SH | Transaction & message signing | | Ethereum | EVM compatible | Transaction, message & typed data signing | | Solana | Native | Transaction signing | | Sui | Native | Transaction signing | | TON | Native | Transaction signing | | TRON | Native | Transaction signing | | Cosmos | Native + Babylon | Transaction signing | | Dogecoin | Native | Transaction signing | | Move | Aptos compatible | Transaction signing |

Contributing

This SDK is built on top of CubeSigner and provides a simplified interface for multi-chain operations.

License

ISC