Skip to main content

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

Namespace: ImportableKey

Domain.ImportableKey

Table of contents

Functions

Functions

factory

factory<T>(ctor, opts): Object

factory to create Key property with desired functions allows creation of a given Key through different data types

Type parameters

NameType
Textends Key<T>

Parameters

NameTypeDescription
ctor(bytes: any) => Tthe Key Class
optsOptions

Returns

Object

object with importable functions

NameType
Buffer(value: Buffer) => T
Hex(value: string) => T
PEM(value: string) => T
String(value: string, encoding?: BufferEncoding) => T

Defined in

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