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

@mosip/ble-verifier-sdk

v0.1.1

Published

React Native module to provide verifier capability using Tuvali. This module follows OpenID4VP BLE spec

Downloads

2

Readme

ble-verifier-sdk

This module facilitates seamless interaction with Tuvali's verifier module for BLE (Bluetooth Low Energy) transfers. It offers a user-friendly API tailored for the verifier App's convenience. Additionally, it maintains essential state data within its context, which the UI module can access and utilize effectively.

Also have React Hooks, Request Util and any other utilities that makes it easier for verifier to integrate.

Installation

npm install @mosip/ble-verifier-sdk

Usage

import OVP_BLE from "@mosip/ble-verifier-sdk";
import OVP_BLE_Verifier_UI from "mosip-react-native-ble-verifier-ui";
const instance = new OVP_BLE({deviceName: "simVerifier"});

const VPShare = ({onSuccess}) => {
	useEffect(() => {
            instance.startTransfer().then((data) => onSuccess(data));
	})

	return <OVPBLE_Verifier_UI instance={instance} theme={theme} />
}

Note: The mosip-react-native-ble-verifier-ui module is yet to be build. If you want to implement your own UI screens, please look at the documentation for internal APIs.

API Reference

1. new new OVP_BLE(config)

Initialize the ovp-ble module with the config provided

const instance = new OVP_BLE({deviceName: "simVerifier"});

  1. deviceName : This name is provided in the advertisment payload during the BLE advertisement. This field have a limit of 11 characters.

2. startTransfer()

This API starts the BLE transfer with the config provided. This method returns a Promise<String>.

Success Case

Promise resolves with the VC.

{ vc: string }

Note: Once the specification is completed, this will be returning VP instead.

Error Case

Promise rejects with error code and error method.

{
  errorCode: string;
  errorMessage: string;
}

Most of the error code are coming from Tuvali. Some of them are from ovp-ble itself. Such as

  • OVP_001 --> 'Transfer stopped'
  • OVP_002 --> 'Device name length exceeded limit of 11 characters'
  • Tuvali error codes

3. stopTransfer()

This API stops the BLE trasfer.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.