Skip to main content

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

Namespace: ExportableKey

Domain.ExportableKey

Declaration merge to contain key conversion functions

Table of contents

Interfaces

Type Aliases

Functions

Type Aliases

All

Ƭ All: Common & JWK & PEM

Defined in

src/domain/models/keyManagement/exportable/ExportableKey.ts:24

Functions

factory

factory(key, opts): Object

factory to create Key property with desired functions which allow converting the Key raw into different formats

Parameters

NameType
keyPrivateKey | PublicKey
optsOptions

Returns

Object

object with exportable functions

NameType
Buffer() => Buffer
Hex() => string
JWK(base?: Base) => JWK
PEM() => string
String(encoding?: BufferEncoding) => string

Defined in

src/domain/models/keyManagement/exportable/ExportableKey.ts:53