UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

31 lines (30 loc) 632 B
import { KeyType } from '../KeyTypeFactory'; import JsonWebKey from '../JsonWebKey'; import PublicKey from '../PublicKey'; /** * Represents an Elliptic Curve public key * @class * @extends PublicKey */ export default class EcPublicKey extends JsonWebKey implements PublicKey { /** * curve */ crv: string | undefined; /** * x co-ordinate */ x: string; /** * y co-ordinate */ y: string; /** * Set the EC key type */ kty: KeyType; /** * Create instance of @class EcPublicKey */ constructor(key: EcPublicKey); }