arisen-ios-browser-signature-provider-interface
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ARISEN Signature Provider for ARISEN Authenticator in iOS

A Signature Provider Interface for communicating with an authenticator from iOS Safari using the ARISEN Authentication Transport Protocol Specification.

Overview

When plugged into arisenjs, this signature provider enables iOS web applications to route signing requests to an iOS authenticator app. Full instructions for arisenjs can be found here.

Notes

This signature provider currently only works for mobile Safari.

Installation

yarn add arisen-ios-browser-signature-provider-interface

Basic Usage

import { Api, JsonRpc } from "arisenjsv1"
import { SignatureProvider } from "arisen-ios-browser-signature-provider-interface"

const rpc = new JsonRpc("RPC_ENDPOINT_HERE")
const signatureProvider = new SignatureProvider({
  declaredDomain: "YOUR_DOMAIN", // This domain must have a `chain-manifests.json` file at the root
  returnUrl: "YOUR_DOMAIN",
})
const api = new Api({
  rpc,
  signatureProvider,
})

api.transact(...)

Links

Contribution

Check out the Contributing guide and please adhere to the Code of Conduct

License

MIT licensed

Package Sidebar

Install

npm i arisen-ios-browser-signature-provider-interface

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

27.8 kB

Total Files

16

Last publish

Collaborators

  • arisenx