UNPKG

eulith-web3js

Version:

Official Eulith Typescript client library

29 lines (28 loc) 1.07 kB
/// <reference types="node" /> /// <reference types="node" /> import { KMSClient } from "@aws-sdk/client-kms"; import * as Eulith from "./index"; /** * Construct KMSSigner with KMSClient (an object part of the AWS KMS SDK/library to connect to AWS KMS), * and an ID, signifying which AWS KMS key to use. * * Then this signer can be used like any other Eulith.Signing.ICryptographicSigner */ export declare class KMSSigner implements Eulith.Signing.ICryptographicSigner { private constructor(); /** * 'Static constructor' / 'factory for KMSSigner. NOTE - not regular constructor due to async nature of construction. * * @param AWSKMSClient * @param AWSKMSID * @param logger */ static mk(AWSKMSClient: KMSClient, AWSKMSID: string, logger?: Eulith.Logging.ILogger): Promise<Eulith.KMSSigner>; signHash(hash: Buffer): Promise<Eulith.Signing.ECDSASignature>; get address(): string; get publicKey(): string; private AWSKMSClient_; private AWSKMSID_; private publicKey_; private EthereumAddress_; }