import { Auth, SignerConfig } from "@uni-sign/types";
|
import { Key } from "./key";
|
export declare class BaseSigner {
|
protected _auth: Auth;
|
protected _config: SignerConfig;
|
constructor(auth: Auth, config: SignerConfig);
|
get auth(): Auth;
|
get config(): SignerConfig;
|
get publicKey(): Key;
|
get publicKeyHash(): Key;
|
setAuth(auth: Auth): void;
|
setConfig(config: SignerConfig): void;
|
signArbitrary(message: Uint8Array): Key;
|
verifyArbitrary(message: Uint8Array, signature: Key): boolean;
|
}
|