Identity

Interact with ODIS and the attestations service

Current-attestation-services

Outputs the set of validators currently participating in BFT and which ones are participating in Celo's lightweight identity protocol

USAGE
$ celocli identity:current-attestation-services
OPTIONS
--gasCurrency=(celo|CELO|cusd|cUSD|auto|Auto) Use a specific gas currency for transaction fees (defaults to 'auto'
which uses whatever feeCurrency is available)

See code: packages/cli/src/commands/identity/current-attestation-services.ts

Identifier

Queries ODIS for the on-chain identifier and pepper corresponding to a given phone number.

USAGE
$ celocli identity:identifier
OPTIONS
--context=context mainnet (default), alfajores, or alfajoresstaging
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) The address from which to perform the query
--gasCurrency=(celo|CELO|cusd|cUSD|auto|Auto) Use a specific gas currency for transaction fees (defaults to
'auto' which uses whatever feeCurrency is available)
--ledgerAddresses=ledgerAddresses [default: 1] If --useLedger is set, this will get the first N
addresses for local signing
--ledgerConfirmAddress Set it to ask confirmation for the address of the transaction from
the ledger
--ledgerCustomAddresses=ledgerCustomAddresses [default: [0]] If --useLedger is set, this will get the array of
index addresses for local signing. Example --ledgerCustomAddresses
"[4,99]"
--phoneNumber=+14152223333 (required) The phone number for which to query the identifier.
Should be in e164 format with country code.
--useLedger Set it to use a ledger wallet
EXAMPLE
identifier --phoneNumber +14151231234 --from 0x5409ed021d9299bf6814279a6a1411a7e866a631 --context alfajores

See code: packages/cli/src/commands/identity/identifier.ts

Test-attestation-service

Tests whether the account has setup the attestation service properly by calling the test endpoint on it

USAGE
$ celocli identity:test-attestation-service
OPTIONS
--from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d (required) Your validator's signer or account address
--gasCurrency=(celo|CELO|cusd|cUSD|auto|Auto) Use a specific gas currency for transaction fees (defaults to
'auto' which uses whatever feeCurrency is available)
--ledgerAddresses=ledgerAddresses [default: 1] If --useLedger is set, this will get the first N
addresses for local signing
--ledgerConfirmAddress Set it to ask confirmation for the address of the transaction from
the ledger
--ledgerCustomAddresses=ledgerCustomAddresses [default: [0]] If --useLedger is set, this will get the array of
index addresses for local signing. Example --ledgerCustomAddresses
"[4,99]"
--message=message (required) The message of the SMS
--phoneNumber=+14152223333 (required) The phone number to send the test message to
--provider=provider Test a specific provider (try "twilio" or "nexmo")
--useLedger Set it to use a ledger wallet
EXAMPLE
test-attestation-service --from 0x97f7333c51897469E8D98E7af8653aAb468050a3

See code: packages/cli/src/commands/identity/test-attestation-service.ts