@request-seal/core API
    Preparing search index...

    Function createSshAgent

    • Caller-selected local socket and trusted public components; no environment discovery.

      Parameters

      • algorithm: unknown
      • socketPath: unknown
      • publicKey: unknown
      • options: unknown = {}

      Returns Promise<
          Result<
              Readonly<
                  {
                      algorithm: CustodyAlgorithm;
                      capabilities: readonly ("sign" | "verify" | "unwrap")[];
                      identity: (
                          context?: Readonly<{ deadline: number; signal: AbortSignal }>,
                      ) => Promise<Result<KeyIdentity>>;
                      publicKey: (
                          context?: Readonly<{ deadline: number; signal: AbortSignal }>,
                      ) => Promise<Result<PublicKey>>;
                      release: () => Promise<Result<true>>;
                      sign: (
                          algorithm: unknown,
                          data: unknown,
                          context: Context,
                          options?: unknown,
                      ) => Promise<Result<Uint8Array<ArrayBuffer>>>;
                      unwrap: (
                          algorithm: unknown,
                          wrappedKey: unknown,
                          context: Context,
                          options?: unknown,
                      ) => Promise<
                          Result<
                              Readonly<
                                  {
                                      decrypt: (
                                          ciphertext: unknown,
                                          options: unknown,
                                          context: Context,
                                      ) => Promise<(...)>;
                                      length: 128 | 256;
                                      release: () => Promise<(...)>;
                                  },
                              >,
                          >,
                      >;
                      verify: (
                          algorithm: unknown,
                          signature: unknown,
                          data: unknown,
                          context: Context,
                          options?: unknown,
                      ) => Promise<Result<true>>;
                  },
              >,
          >,
      >