@atala/prism-wallet-sdk / Exports / Domain / PrivateKey
Class: PrivateKey
Domain.PrivateKey
Storable define properties a Domain object must implement to be compatible with Pluto
Hierarchy
-
↳
PrivateKey
Implements
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new PrivateKey(): PrivateKey
Returns
Inherited from
Properties
keySpecification
• Abstract
keySpecification: Map
<string
, string
>
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:146
raw
• Abstract
raw: Uint8Array
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:148
size
• Abstract
size: number
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:147
to
• Abstract
to: Object
Type declaration
Name | Type |
---|---|
Buffer | () => Buffer |
String | (encoding? : BufferEncoding ) => string |
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:149
type
• Abstract
type: KeyTypes
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:145
uuid
• Readonly
uuid: string
Universally Unique Identifier. should be unique across all items.
Implementation of
Defined in
src/domain/models/keyManagement/PrivateKey.ts:9
Accessors
alg
• get
alg(): JWT_ALG
Returns
Inherited from
Key.alg
Defined in
src/domain/models/keyManagement/Key.ts:158
curve
• get
curve(): string
Returns
string
Overrides
Key.curve
Defined in
src/domain/models/keyManagement/PrivateKey.ts:11
index
• get
index(): undefined
| number
Derivation index. The index of the key in the derivation path. Only applicable for HD keys
Returns
undefined
| number
Defined in
src/domain/models/keyManagement/PrivateKey.ts:23
value
• get
value(): Uint8Array
Returns
Uint8Array
Defined in
src/domain/models/keyManagement/PrivateKey.ts:30
Methods
canVerify
▸ canVerify(): this is VerifiableKey
Returns
this is VerifiableKey
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:180
getEncoded
▸ getEncoded(): Uint8Array
Returns
Uint8Array
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:151
getProperty
▸ getProperty(name
): undefined
| string
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| string
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:184
isCurve
▸ isCurve<T
>(curve
): this is T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
curve | string |
Returns
this is T
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:188
isDerivable
▸ isDerivable(): this is DerivableKey
Returns
this is DerivableKey
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:164
isExportable
▸ isExportable(): this is All
Returns
this is All
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:168
isSignable
▸ isSignable(): this is SignableKey
Returns
this is SignableKey
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:172
isStorable
▸ isStorable(): this is StorableKey
Returns
this is StorableKey
Inherited from
Defined in
src/domain/models/keyManagement/Key.ts:176
publicKey
▸ publicKey(): PublicKey