@celo/utils"packages/sdk/utils/src/attestations"

Module: "packages/sdk/utils/src/attestations"

Index

References

Functions

Object literals

References

AttestationsStatus

AttestationsStatus:


IdentifierType

IdentifierType:


base64ToHex

base64ToHex:


extractAttestationCodeFromMessage

extractAttestationCodeFromMessage:


getIdentifierPrefix

getIdentifierPrefix:


isAccountConsideredVerified

isAccountConsideredVerified:


messageContainsAttestationCode

messageContainsAttestationCode:


sanitizeMessageBase64

sanitizeMessageBase64:

Functions

attestToIdentifier

attestToIdentifier(identifier: string, account: string, privateKey: string): Signature

Defined in packages/sdk/utils/src/attestations.ts:52

Parameters:

Name Type
identifier string
account string
privateKey string

Returns: Signature


extractSecurityCodeWithPrefix

extractSecurityCodeWithPrefix(message: string): null | string

Defined in packages/sdk/utils/src/attestations.ts:66

Parameters:

Name Type
message string

Returns: null | string


getAttestationMessageToSignFromIdentifier

getAttestationMessageToSignFromIdentifier(identifier: string, account: string): string

Defined in packages/sdk/utils/src/attestations.ts:33

Parameters:

Name Type
identifier string
account string

Returns: string


getAttestationMessageToSignFromPhoneNumber

getAttestationMessageToSignFromPhoneNumber(phoneNumber: string, account: string, phoneSalt?: undefined | string): string

Defined in packages/sdk/utils/src/attestations.ts:41

Parameters:

Name Type
phoneNumber string
account string
phoneSalt? undefined | string

Returns: string


hashIdentifier

hashIdentifier(identifier: string, type: IdentifierType, salt?: undefined | string): string

Defined in packages/sdk/utils/src/attestations.ts:29

Parameters:

Name Type
identifier string
type IdentifierType
salt? undefined | string

Returns: string

Object literals

Const AttestationUtils

AttestationUtils: object

Defined in packages/sdk/utils/src/attestations.ts:74

IdentifierType

IdentifierType: IdentifierType

Defined in packages/sdk/utils/src/attestations.ts:75

attestToIdentifier

attestToIdentifier: attestToIdentifier

Defined in packages/sdk/utils/src/attestations.ts:81

base64ToHex

base64ToHex: base64ToHex

Defined in packages/sdk/utils/src/attestations.ts:80

extractAttestationCodeFromMessage

extractAttestationCodeFromMessage: extractAttestationCodeFromMessage

Defined in packages/sdk/utils/src/attestations.ts:84

extractSecurityCodeWithPrefix

extractSecurityCodeWithPrefix: extractSecurityCodeWithPrefix

Defined in packages/sdk/utils/src/attestations.ts:86

getAttestationMessageToSignFromIdentifier

getAttestationMessageToSignFromIdentifier: getAttestationMessageToSignFromIdentifier

Defined in packages/sdk/utils/src/attestations.ts:78

getAttestationMessageToSignFromPhoneNumber

getAttestationMessageToSignFromPhoneNumber: getAttestationMessageToSignFromPhoneNumber

Defined in packages/sdk/utils/src/attestations.ts:79

getIdentifierPrefix

getIdentifierPrefix: getIdentifierPrefix

Defined in packages/sdk/utils/src/attestations.ts:76

hashIdentifier

hashIdentifier: hashIdentifier

Defined in packages/sdk/utils/src/attestations.ts:77

isAccountConsideredVerified

isAccountConsideredVerified: isAccountConsideredVerified

Defined in packages/sdk/utils/src/attestations.ts:85

messageContainsAttestationCode

messageContainsAttestationCode: messageContainsAttestationCode

Defined in packages/sdk/utils/src/attestations.ts:83

sanitizeMessageBase64

sanitizeMessageBase64: sanitizeMessageBase64

Defined in packages/sdk/utils/src/attestations.ts:82