AccessGrid.SmartTapReveal (AccessGrid v0.1.0)

Copy Markdown View Source

Response from AccessGrid.Console.reveal_smart_tap/3 — the Smart Tap credentials for a card template, encrypted with the caller's ephemeral public key.

The caller decrypts encrypted_private_key using their corresponding private key (out-of-scope for this SDK — Smart Tap decryption is the caller's responsibility).

encrypted_private_key is exposed as a raw map (string keys) — it's an encryption envelope, not a first-class entity. Expected keys:

  • "alg" — encryption algorithm identifier
  • "ephemeral_public_key" — server-side ephemeral key for ECDH
  • "iv" — initialization vector
  • "ciphertext" — encrypted Smart Tap private key
  • "tag" — authentication tag

Summary

Functions

Creates a SmartTapReveal struct from an API response map.

Types

t()

@type t() :: %AccessGrid.SmartTapReveal{
  collector_id: String.t() | nil,
  encrypted_private_key: map() | nil,
  fingerprint: String.t() | nil,
  key_version: String.t() | nil
}

Functions

from_response(data)

@spec from_response(map()) :: t()

Creates a SmartTapReveal struct from an API response map.