Search
Preparing search index...
The search index is not available
symbol-network
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
symbol-network
LocalFileKeyStore
Class LocalFileKeyStore
Hierarchy
LocalFileKeyStore
Implements
KeyStore
Index
Constructors
constructor
Properties
storage
storage
File
Methods
create
Voting
Key
File
generate
New
Account
get
Network
Account
get
Node
Account
get
Voting
Key
File
save
save
Network
Account
to
Stored
Constructors
constructor
new
Local
File
Key
Store
(
password
:
Password
, mustExist
:
boolean
, workingDir
:
string
)
:
LocalFileKeyStore
Parameters
password:
Password
mustExist:
boolean
workingDir:
string
Returns
LocalFileKeyStore
Properties
Private
Readonly
storage
storage
:
KeyStorage
Private
Readonly
storage
File
storage
File
:
string
Methods
Private
create
Voting
Key
File
create
Voting
Key
File
(
votingUtils
:
VotingUtils
, votingAccount
:
Account
, nodeName
:
string
, votingFile
:
{
endEpoch
:
number
;
publicKey
:
string
;
startEpoch
:
number
}
)
:
Promise
<
Uint8Array
>
Parameters
votingUtils:
VotingUtils
votingAccount:
Account
nodeName:
string
votingFile:
{
endEpoch
:
number
;
publicKey
:
string
;
startEpoch
:
number
}
end
Epoch
:
number
public
Key
:
string
start
Epoch
:
number
Returns
Promise
<
Uint8Array
>
Protected
generate
New
Account
generate
New
Account
(
generate
:
boolean
, networkType
:
NetworkType
)
:
Account
Parameters
generate:
boolean
networkType:
NetworkType
Returns
Account
get
Network
Account
get
Network
Account
(
networkType
:
NetworkType
, accountName
:
NetworkAccountName
, generate
:
boolean
)
:
Promise
<
Account
>
Parameters
networkType:
NetworkType
accountName:
NetworkAccountName
generate:
boolean
Returns
Promise
<
Account
>
get
Node
Account
get
Node
Account
(
networkType
:
NetworkType
, keyName
:
KeyName
, nodeName
:
string
, nodeInformation
:
NodeInformation
, generate
:
boolean
)
:
Promise
<
Account
>
Parameters
networkType:
NetworkType
keyName:
KeyName
nodeName:
string
nodeInformation:
NodeInformation
generate:
boolean
Returns
Promise
<
Account
>
get
Voting
Key
File
get
Voting
Key
File
(
networkType
:
NetworkType
, nodeName
:
string
, nodeInformation
:
NodeInformation
, startEpoch
:
number
, endEpoch
:
number
)
:
Promise
<
VotingKeyFileContent
>
Parameters
networkType:
NetworkType
nodeName:
string
nodeInformation:
NodeInformation
startEpoch:
number
endEpoch:
number
Returns
Promise
<
VotingKeyFileContent
>
Private
save
save
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
save
Network
Account
save
Network
Account
(
networkType
:
NetworkType
, accountName
:
NetworkAccountName
, privateKey
:
string
)
:
Promise
<
void
>
Parameters
networkType:
NetworkType
accountName:
NetworkAccountName
privateKey:
string
Returns
Promise
<
void
>
to
Stored
to
Stored
(
account
:
Account
)
:
StoredAccount
Parameters
account:
Account
Returns
StoredAccount
Exports
Local
File
Key
Store
constructor
storage
storage
File
create
Voting
Key
File
generate
New
Account
get
Network
Account
get
Node
Account
get
Voting
Key
File
save
save
Network
Account
to
Stored
Generated using
TypeDoc