A Signature Provider Interface for communicating with an authenticator from iOS Safari using the ARISEN Authentication Transport Protocol Specification.
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.
This signature provider currently only works for mobile Safari.
yarn add arisen-ios-browser-signature-provider-interface
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(...)
Check out the Contributing guide and please adhere to the Code of Conduct