Documentation
    Preparing search index...

    EIP191 signer

    Hierarchy (View Summary)

    • DID
      • EIP191Signer
    Index
    address: `0x${string}`
    chainId: number | `0x${string}`
    did: DID

    DID String - top level DID

    "did:web:example.com"
    
    didObject: DIDURLObject

    DID URL Object

    didUrl: DIDURL

    DID URL string

    "did:web:example.com#fragment1?query=value"
    
    document: DIDDocument

    DID Document

    fragment: string | undefined
    id: string
    method: string
    namespace: string
    path: string | undefined
    provider: Provider
    query: string | undefined
    signatureType: SignatureType
    verifiableDid: DIDKey | DIDPkh

    Verifiable DID - resolved from the did

    • Sign a message

      Normalizes the wallet signature with normalizeSignature.

      Parameters

      • message: Uint8Array<ArrayBufferLike>

      Returns Promise<Uint8Array<ArrayBuffer>>

    • Generate a new signer

      Parameters

      • options: {
            address?: `0x${string}`;
            chainId?: number | `0x${string}`;
            namespace?: string;
            provider: Provider;
        }
        • Optionaladdress?: `0x${string}`

          default: first account from provider

        • OptionalchainId?: number | `0x${string}`

          default: 1

        • Optionalnamespace?: string

          default: eip155

        • provider: Provider

          EIP-1193 wallet provider

      Returns Promise<EIP191Signer>

      const signer = await EIP191Signer.from({
      provider: window.ethereum,
      })
    • Parameters

      Returns Promise<DID>