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