Packages

@onmax/mobile-signer-bridge

Generic phone-side bridge contract for QR challenge approval.

@onmax/mobile-signer-bridge

This package keeps the phone-side completion logic independent from Nimiq-specific runtime code.

Core types

bridge.ts
export interface SignerBridge<TIdentity, TAssertion> {
  getIdentity: () => Promise<TIdentity>
  signMessage: (message: string) => Promise<TAssertion>
}

Main helpers

  • fetchMobileQrChallenge(fetcher, options)
  • completeMobileQrChallenge(fetcher, options)

completeMobileQrChallenge() fetches the challenge, checks the expected provider id when you pass one, asks the bridge for identity and signature data, and posts the final assertion payload to the QR plugin.

Copyright © 2026