toip.tools

API reference · Browser and Node

@toip-tools/cose

24 public exports.

TypeScriptModule import
import { ALG, type AsyncSigner, type CoseAlg } from "@toip-tools/cose";

Functions

Classes

  • Tagged

    A wrapper class for representing a CBOR tag with an arbitrary nested value.

Interfaces

Types

  • CoseAlg

    Ed25519 (-19), ESP256 (-9), EdDSA (-8), ES256 (-7), and the private-use WebAuthn-wrapped ES256 (-65600).

  • CoseFailure
  • Curve
  • KeyLookup

    Finds the keys that may have signed: for a device, its current key and, around a rotation, the previous one.

  • VerifyResult
  • WebAuthnGet

    `navigator.credentials.get`, or a stand-in for tests.

Constants

Signatures and source documentation are generated from packages/cose/src/index.ts.