@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
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
Name | Type |
---|---|
key | PrivateKey | PublicKey |
opts | Options |
Returns
Object
object with exportable functions
Name | Type |
---|---|
Buffer | () => Buffer |
Hex | () => string |
JWK | (base? : Base ) => JWK |
PEM | () => string |
String | (encoding? : BufferEncoding ) => string |
Defined in
src/domain/models/keyManagement/exportable/ExportableKey.ts:53