toip.tools

interface · Browser and Node

PublicKey

@toip-tools/coseView source
TypeScriptImport
import { type PublicKey } from "@toip-tools/cose";

Declaration

TypeScriptinterface
interface PublicKey {
  curve: Curve;
  /** Ed25519: 32 bytes. P-256: a SEC1 point (33 or 65 bytes) or a SubjectPublicKeyInfo. */
  bytes: Uint8Array;
}

Properties

curverequired
Curve
bytesrequired
Uint8Array<ArrayBufferLike>

Ed25519: 32 bytes. P-256: a SEC1 point (33 or 65 bytes) or a SubjectPublicKeyInfo.