• Preparing search index...
  • The search index is not available
@aptos-labs/ts-sdk - v5.1.5
  • @aptos-labs/ts-sdk
  • fetchJWK

Function fetchJWK

  • fetchJWK(args): Promise<MoveJWK>
  • Fetches the JWK from the issuer's well-known JWKS endpoint.

    Parameters

    • args: {
          aptosConfig: AptosConfig;
          kid: string;
          publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
      }
      • aptosConfig: AptosConfig
      • kid: string

        The kid of the JWK to fetch

      • publicKey: KeylessPublicKey | FederatedKeylessPublicKey

        The keyless public key which contains the issuer the address to fetch the JWK from (0x1 if not federated).

    Returns Promise<MoveJWK>

    A JWK matching the kid in the JWT header.

    Throws

    If the JWK cannot be fetched

    • Defined in src/core/crypto/keyless.ts:517

Settings

Member Visibility
@aptos-labs/ts-sdk - v5.1.5
  • Loading...