Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 960 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 960 Bytes

Go Library for FIDO CTAP2

Go Reference Go Report Card

Introduction

This library implements FIDO Client to Authenticator Protocol(CTAP) 2.1.

Installation

go get github.com/tpc3/go-ctap

Features

  • Command request and response struct
  • Command function
  • PinUvAuth utility
  • wrap PC/SC card

CTAP1 isn't implemented

Usage

Get device

  • NFC: call ctap_pcsc.NewDevice(card *scard.Card)
  • USB: WIP

Get PinUvAuthToken

call (ctap.Device).GetPinUvAuthToken(permission, rpId, pin)

Call CTAP commands

call (ctap.Device).<command_name>

Read example directory to get more usage.