OID4VC

object OID4VC(source)

OID4VCgo's mobile API. Every call runs off the caller's thread: Go calls block, and must never run on the main thread.

Properties

Link copied to clipboard

The ABI version of the Go side this library was built against.

Link copied to clipboard
const val expectedABIVersion: Int = 12

The ABI version these Kotlin sources were written for. A wallet isn't made on a Go library of another — a stale build, or the Go side changed without these sources — rather than misreading its JSON. The Go tests keep it equal to the mobile package's.

Link copied to clipboard

Whether the linked Go library is the test build, carrying an in-process test issuer and Verifier (-tags mobiletest): an app should refuse to run on it.

Functions

Link copied to clipboard
suspend fun checkKeyStore(keyStore: KeyStore): List<KeyPurpose>

Exercises keyStore as the wallet will — for each purpose: create a key, sign with it, look it up, delete it — and returns the purposes checked. A store asking for user presence on holder keys prompts once.

Link copied to clipboard
suspend fun parseRequestLink(link: String): RequestLink

Parses an OpenID4VP request link (openid4vp://…) into its parts, without fetching anything. Wallet.startPresentation does this itself.