Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace did

Index

References

Renames and re-exports write

Functions

  • didToPublicKey(did: string): { publicKey: string; type: KeyType }
  • exchange(): Promise<string>
  • Create a DID based on the exchange key-pair.

    Returns Promise<string>

  • ownRoot(): Promise<string>
  • Get a user's own root write-key DID.

    Returns Promise<string>

  • publicKeyToDid(publicKey: string, type: KeyType): string
  • root(username: string): Promise<string>
  • Get the root write-key DID for a user. Stored at _did.${username}.${endpoints.user}

    Parameters

    • username: string

    Returns Promise<string>

  • verifySignedData(__namedParameters: { charSize?: number; data: string; did: string; signature: string }): Promise<boolean>
  • Verify the signature of some data (string, ArrayBuffer or Uint8Array), given a DID.

    Parameters

    • __namedParameters: { charSize?: number; data: string; did: string; signature: string }
      • Optional charSize?: number
      • data: string
      • did: string
      • signature: string

    Returns Promise<boolean>

  • write(): Promise<string>
  • Create a DID based on the write key-pair.

    Returns Promise<string>

Generated using TypeDoc