@assemblyvoting/js-client
Preparing search index...
av_client
IAVClient
Interface IAVClient
interface
IAVClient
{
initialize
(
latestConfig
:
LatestConfig
)
:
Promise
<
void
>
;
initialize
()
:
Promise
<
void
>
;
requestAccessCode
(
opaqueVoterId
:
string
,
email
:
string
)
:
Promise
<
void
>
;
validateAccessCode
(
code
:
string
)
:
Promise
<
void
>
;
registerVoter
()
:
Promise
<
void
>
;
constructBallot
(
ballotSelection
:
BallotSelection
)
:
Promise
<
string
>
;
waitForVerifierRegistration
()
:
Promise
<
string
>
;
spoilBallot
()
:
Promise
<
string
>
;
castBallot
(
affidavit
:
string
)
:
Promise
<
BallotBoxReceipt
>
;
challengeBallot
()
:
Promise
<
void
>
;
checkBallotStatus
(
trackingCode
:
string
)
:
Promise
<
BallotStatus
>
;
}
Implemented by
AVClient
Index
Methods
initialize
request
Access
Code
validate
Access
Code
register
Voter
construct
Ballot
wait
For
Verifier
Registration
spoil
Ballot
cast
Ballot
challenge
Ballot
check
Ballot
Status
Methods
initialize
initialize
(
latestConfig
:
LatestConfig
)
:
Promise
<
void
>
Parameters
latestConfig
:
LatestConfig
Returns
Promise
<
void
>
initialize
()
:
Promise
<
void
>
Returns
Promise
<
void
>
request
Access
Code
requestAccessCode
(
opaqueVoterId
:
string
,
email
:
string
)
:
Promise
<
void
>
Parameters
opaqueVoterId
:
string
email
:
string
Returns
Promise
<
void
>
validate
Access
Code
validateAccessCode
(
code
:
string
)
:
Promise
<
void
>
Parameters
code
:
string
Returns
Promise
<
void
>
register
Voter
registerVoter
()
:
Promise
<
void
>
Returns
Promise
<
void
>
construct
Ballot
constructBallot
(
ballotSelection
:
BallotSelection
)
:
Promise
<
string
>
Parameters
ballotSelection
:
BallotSelection
Returns
Promise
<
string
>
wait
For
Verifier
Registration
waitForVerifierRegistration
()
:
Promise
<
string
>
Returns
Promise
<
string
>
spoil
Ballot
spoilBallot
()
:
Promise
<
string
>
Returns
Promise
<
string
>
cast
Ballot
castBallot
(
affidavit
:
string
)
:
Promise
<
BallotBoxReceipt
>
Parameters
affidavit
:
string
Returns
Promise
<
BallotBoxReceipt
>
challenge
Ballot
challengeBallot
()
:
Promise
<
void
>
Returns
Promise
<
void
>
check
Ballot
Status
checkBallotStatus
(
trackingCode
:
string
)
:
Promise
<
BallotStatus
>
Parameters
trackingCode
:
string
Returns
Promise
<
BallotStatus
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
initialize
request
Access
Code
validate
Access
Code
register
Voter
construct
Ballot
wait
For
Verifier
Registration
spoil
Ballot
cast
Ballot
challenge
Ballot
check
Ballot
Status
@assemblyvoting/js-client
Loading...