Developer Guide

identity/claims/verify

Index

Functions

Functions

Const verifyAccountClaim

verifyAccountClaim(kit: ContractKit, claim: AccountClaim, address: string): Promise‹undefined | string›

Defined in contractkit/src/identity/claims/verify.ts:33

Parameters:

Name

Type

kit

ContractKit

claim

AccountClaim

address

string

Returns: Promise‹undefined | string›

verifyClaim

verifyClaim(kit: ContractKit, claim: Claim, address: string): Promise‹undefined | string›

Defined in contractkit/src/identity/claims/verify.ts:19

Verifies a claim made by an account, i.e. whether a claim can be verified to be correct

Parameters:

Name

Type

Description

kit

ContractKit

ContractKit object

claim

Claim

The claim to verify

address

string

The address that is making the claim

Returns: Promise‹undefined | string›

If valid, returns undefined. If invalid or unable to verify, returns a string with the error

Const verifyDomainRecord

verifyDomainRecord(kit: ContractKit, claim: DomainClaim, address: string, dnsResolver: dnsResolverFunction): Promise‹undefined | string›

Defined in contractkit/src/identity/claims/verify.ts:72

It verifies if a DNS domain includes in the TXT records an entry with name celo-site-verification and a valid signature in base64

Parameters:

Name

Type

Default

kit

ContractKit

-

claim

DomainClaim

-

address

string

-

dnsResolver

dnsResolverFunction

resolveTxt as any

Returns: Promise‹undefined | string›