Documentation
    Preparing search index...

    EIP191 signer

    Hierarchy (View Summary)

    • DID
      • EIP191Signer
    Index

    Constructors

    Properties

    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: undefined | string
    id: string
    method: string
    namespace: string
    path: undefined | string
    provider: {}
    query: undefined | string
    signatureType: SignatureType
    verifiableDid: DIDKey | DIDPkh

    Verifiable DID - resolved from the did

    Methods

    • Generate a new signer

      Parameters

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

      Returns Promise<EIP191Signer>

      import { Provider } from 'ox'
      const provider = Provider.from(window.ethereum)
      const signer = await EIP191Signer.generate({
      provider,
      })
    • Parameters

      • did: string
      • Optionalresolver: Resolver

      Returns Promise<DID>