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

@qubic-js/react-native-alice

v0.7.1

Published

react native plugin for alice

Readme

react-native-alice

rn plugin for alice

Installation

npm install react-native-alice

Usage

createAccount(
  password: string,
  reqPayload: string,
  wsUrl: string,
  ticket: string
): Promise<string>;
verifyPassword(
  password: string,
  reqPayload: string,
  wsUrl: string,
  ticket: string
): Promise<string>;
reshare(
  oldPassword: string,
  newPassword: string,
  reqPayload: string,
  wsUrl: string,
  ticket: string
): Promise<string>;
signMessage(
  password: string,
  reqPayload: string,
  wsUrl: string,
  ticket: string
): Promise<string>;
signTypedData(
  password: string,
  reqPayload: string,
  wsUrl: string,
  ticket: string
): Promise<string>;
signTransaction(
  password: string,
  reqPayload: string,
  wsUrl: string,
  ticket: string
): Promise<string>;
echo(text: string): Promise<string>;
getGoBenchmarkResult(): string;
generateSafePrime(size: number): string;
generatePrime(size: number): string;

CGGMP 簽署

CGGMP 簽署前,先以 refreshCggmp 建立本機材料。裝置只保留最近一次 refresh 的錢包;切換錢包後,該錢包需要重新 refresh。

await refreshCggmp({ password, requestId, walletId, address, wsUrl, ticket });
const hasMaterial = await hasCggmpMaterial(walletId);

reshare/resetPassword 不會自動清除本機材料。依目前 backend 的 refresh ID 查詢方式與整合測試,密碼重設後不一定需要重新 refresh;若既有材料仍可簽署,可繼續使用。若材料不存在、簽署失敗,或 backend 不再接受舊 refresh ID,再以新密碼呼叫 refreshCggmp。

await resetPassword({
  oldPassword,
  newPassword,
  requestId,
  walletId,
  address,
  mfaType,
  passcode,
  wsUrl,
  ticket,
});

clearCggmpMaterial() 無參數,會清除裝置上所有 CGGMP 材料。Android 若 app 備份還原後材料無法解密,先呼叫此 API,再重新 refresh;也可以直接 refresh 覆寫目前材料。

iOS 安裝要求

Expo config 需要啟用 new architecture:

[
  'expo-build-properties',
  {
    ios: {
      newArchEnabled: true,
    },
  },
],