Skip to main content

celocli dkg

Publish your locally computed DKG results to the blockchain

celocli dkg:allowlist

Allowlist an address in the DKG

USAGE
$ celocli dkg:allowlist --participantAddress <value> --address <value> --from
<value> [--globalHelp]

FLAGS
--address=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) DKG Contract Address
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Address of the sender
--globalHelp View all available global flags
--participantAddress=<value> (required) Address of the
participant to allowlist

DESCRIPTION
Allowlist an address in the DKG

See code: src/commands/dkg/allowlist.ts

celocli dkg:deploy

Deploys the DKG smart contract

USAGE
$ celocli dkg:deploy --phaseDuration <value> --threshold <value> --from
<value> [--globalHelp]

FLAGS
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Address of the sender
--globalHelp View all available global flags
--phaseDuration=<value> (required) Duration of each DKG
phase in blocks
--threshold=<value> (required) The threshold to use for
the DKG

DESCRIPTION
Deploys the DKG smart contract

See code: src/commands/dkg/deploy.ts

celocli dkg:get

Gets data from the contract to run the next phase

USAGE
$ celocli dkg:get --method
shares|responses|justifications|participants|phase|group --address <value>
[--globalHelp]

FLAGS
--address=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) DKG Contract Address
--globalHelp View all available global flags
--method=<option> (required) Getter method to call
<options:
shares|responses|justifications|
participants|phase|group>

DESCRIPTION
Gets data from the contract to run the next phase

See code: src/commands/dkg/get.ts

celocli dkg:publish

Publishes data for each phase of the DKG

USAGE
$ celocli dkg:publish --data <value> --address <value> --from <value>
[--globalHelp]

FLAGS
--address=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) DKG Contract Address
--data=<value> (required) Path to the data
being published
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Address of the sender
--globalHelp View all available global flags

DESCRIPTION
Publishes data for each phase of the DKG

See code: src/commands/dkg/publish.ts

celocli dkg:register

Register a public key in the DKG

USAGE
$ celocli dkg:register --blsKey <value> --address <value> --from <value>
[--globalHelp]

FLAGS
--address=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) DKG Contract Address
--blsKey=<value> (required)
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Address of the sender
--globalHelp View all available global flags

DESCRIPTION
Register a public key in the DKG

See code: src/commands/dkg/register.ts

celocli dkg:start

Starts the DKG

USAGE
$ celocli dkg:start --address <value> --from <value> [--globalHelp]

FLAGS
--address=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) DKG Contract Address
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Address of the sender
--globalHelp View all available global flags

DESCRIPTION
Starts the DKG

See code: src/commands/dkg/start.ts