@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
13 lines • 654 B
TypeScript
import type { SignerContext } from "@ledgerhq/ledger-wallet-framework/signer";
import type { GetViewKeyFn } from "@ledgerhq/coin-aleo/signer/getViewKey";
import type { CreateSigner } from "../../../../bridge/setup";
import type { Resolver } from "./types";
export type ViewKeyResolver<T> = (signerContext: SignerContext<T>) => GetViewKeyFn;
/**
* Inject the `signer` so it can be used by the resolver function.
* @param signerFactory
* @param viewKeyResolver
* @returns Resolver
*/
export declare function createViewKeyResolver<T>(signerFactory: CreateSigner<T>, viewKeyResolver: ViewKeyResolver<T>): Resolver;
//# sourceMappingURL=resolver.d.ts.map