Orderly network core.MockKeyStore
Orderly SDKs / Modules / @orderly.network/core / MockKeyStore
Class: MockKeyStore
@orderly.network/core.MockKeyStore
Implements
Table of contents
Constructors
Properties
Methods
- cleanAllKey
- cleanKey
- generateKey
- getAccountId
- getAddress
- getOrderlyKey
- setAccountId
- setAddress
- setKey
Constructors
constructor
• new MockKeyStore(secretKey
)
Parameters
Name | Type |
---|---|
secretKey | string |
Defined in
packages/core/src/keyStore.ts:132
Properties
secretKey
• Private
Readonly
secretKey: string
Defined in
packages/core/src/keyStore.ts:132
Methods
cleanAllKey
▸ cleanAllKey(): void
Returns
void
Implementation of
Defined in
packages/core/src/keyStore.ts:155
cleanKey
▸ cleanKey(key
): void
Parameters
Name | Type |
---|---|
key | string |
Returns
void
Implementation of
Defined in
packages/core/src/keyStore.ts:156
generateKey
▸ generateKey(): BaseOrderlyKeyPair
Returns
Implementation of
Defined in
packages/core/src/keyStore.ts:133
getAccountId
▸ getAccountId(): string
Returns
string
Implementation of
Defined in
packages/core/src/keyStore.ts:141
getAddress
▸ getAddress(): string
Returns
string
Implementation of
Defined in
packages/core/src/keyStore.ts:147
getOrderlyKey
▸ getOrderlyKey(): BaseOrderlyKeyPair
Returns
Implementation of
Defined in
packages/core/src/keyStore.ts:137
setAccountId
▸ setAccountId(accountId
): void
Parameters
Name | Type |
---|---|
accountId | string |
Returns
void
Implementation of
Defined in
packages/core/src/keyStore.ts:145
setAddress
▸ setAddress(address
): void
Parameters
Name | Type |
---|---|
address | string |
Returns
void
Implementation of
Defined in
packages/core/src/keyStore.ts:151
setKey
▸ setKey(orderlyKey
, secretKey
): void
Parameters
Name | Type |
---|---|
orderlyKey | string |
secretKey | OrderlyKeyPair |
Returns
void