@li0ard/aspe - v0.1.2
    Preparing search index...

    Class ASPProfile

    Ariadne Signature Profile (ASP)

    Index

    Constructors

    • Ariadne Signature Profile (ASP)

      Parameters

      • keyType: KeyType

        Key type (ES256 or EdDSA)

      • publicKey: Uint8Array

        Profile public key (ANSI X9.62 uncompressed P-256 point)

      • name: string = ""

        Profile name

      • description: string = ""

        Profile description

      • claims: string[] = []

        Profile claims

      • color: string = ""

        Profile color

      • avatar_url: string = ""

        Profile Avatar URL

      • email: string = ""

        Profile Email

      • exp: number = 0

        Expire claim

      • Optionalsignature: Uint8Array<ArrayBufferLike>

        Profile signature (Optional. Needed for export only)

      Returns ASPProfile

    Properties

    avatar_url: string = ""

    Profile Avatar URL

    claims: string[] = []

    Profile claims

    color: string = ""

    Profile color

    description: string = ""

    Profile description

    email: string = ""

    Profile Email

    exp: number = 0

    Expire claim

    keyType: KeyType

    Key type (ES256 or EdDSA)

    name: string = ""

    Profile name

    publicKey: Uint8Array

    Profile public key (ANSI X9.62 uncompressed P-256 point)

    signature?: Uint8Array<ArrayBufferLike>

    Profile signature (Optional. Needed for export only)

    Accessors

    • get thumbprint(): string

      Profile thumbprint

      Returns string

    Methods

    • Get profile avatar URL

      Parameters

      • dicebearApiHostname: string = 'api.dicebear.com'

      Returns string

    • Get hashed profile proof

      Parameters

      • domain: string = "keyoxide.org"

      Returns Promise<string>

    • Get profile ASPE URI (aka Direct proof)

      Parameters

      • domain: string = "keyoxide.org"

      Returns string

    • Export profile as base64 (signature needed)

      Returns string

    • Verify profile signature

      Returns boolean