Skip to main content

@atala/prism-wallet-sdk / Exports / Domain / PublicKey

Class: PublicKey

Domain.PublicKey

Hierarchy

  • Key

    PublicKey

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new PublicKey(): PublicKey

Returns

PublicKey

Inherited from

Key.constructor

Properties

keySpecification

Abstract keySpecification: Map<string, string>

Inherited from

Key.keySpecification

Defined in

src/domain/models/keyManagement/Key.ts:146


raw

Abstract raw: Uint8Array

Inherited from

Key.raw

Defined in

src/domain/models/keyManagement/Key.ts:148


size

Abstract size: number

Inherited from

Key.size

Defined in

src/domain/models/keyManagement/Key.ts:147


to

Abstract to: Object

Type declaration

NameType
Buffer() => Buffer
String(encoding?: BufferEncoding) => string

Inherited from

Key.to

Defined in

src/domain/models/keyManagement/Key.ts:149


type

Abstract type: KeyTypes

Inherited from

Key.type

Defined in

src/domain/models/keyManagement/Key.ts:145

Accessors

alg

get alg(): JWT_ALG

Returns

JWT_ALG

Inherited from

Key.alg

Defined in

src/domain/models/keyManagement/Key.ts:158


curve

get curve(): string

Returns

string

Inherited from

Key.curve

Defined in

src/domain/models/keyManagement/Key.ts:153


value

get value(): Uint8Array

Returns

Uint8Array

Defined in

src/domain/models/keyManagement/PublicKey.ts:4

Methods

canVerify

canVerify(): this is VerifiableKey

Returns

this is VerifiableKey

Inherited from

Key.canVerify

Defined in

src/domain/models/keyManagement/Key.ts:180


getEncoded

getEncoded(): Uint8Array

Returns

Uint8Array

Inherited from

Key.getEncoded

Defined in

src/domain/models/keyManagement/Key.ts:151


getProperty

getProperty(name): undefined | string

Parameters

NameType
namestring

Returns

undefined | string

Inherited from

Key.getProperty

Defined in

src/domain/models/keyManagement/Key.ts:184


isCurve

isCurve<T>(curve): this is T

Type parameters

Name
T

Parameters

NameType
curvestring

Returns

this is T

Inherited from

Key.isCurve

Defined in

src/domain/models/keyManagement/Key.ts:188


isDerivable

isDerivable(): this is DerivableKey

Returns

this is DerivableKey

Inherited from

Key.isDerivable

Defined in

src/domain/models/keyManagement/Key.ts:164


isExportable

isExportable(): this is All

Returns

this is All

Inherited from

Key.isExportable

Defined in

src/domain/models/keyManagement/Key.ts:168


isSignable

isSignable(): this is SignableKey

Returns

this is SignableKey

Inherited from

Key.isSignable

Defined in

src/domain/models/keyManagement/Key.ts:172


isStorable

isStorable(): this is StorableKey

Returns

this is StorableKey

Inherited from

Key.isStorable

Defined in

src/domain/models/keyManagement/Key.ts:176