@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
Name | Type |
---|---|
T | extends Key <T > |
Parameters
Name | Type | Description |
---|---|---|
ctor | (bytes : any ) => T | the Key Class |
opts | Options |
Returns
Object
object with importable functions
Name | Type |
---|---|
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