/// import { JWKInterface } from '../faces/lib/wallet'; import CryptoInterface, { SignatureOptions } from '../faces/utils/crypto'; export default class CryptoDriver implements CryptoInterface { readonly keyLength = 4096; readonly publicExponent: Uint8Array; readonly hashAlgorithm = "SHA-256"; driver: SubtleCrypto; constructor(); generateJWK(): Promise; sign(jwk: JWKInterface, data: Uint8Array, signOpts?: SignatureOptions): Promise; hash(data: Uint8Array, algorithm?: string): Promise; verify(publicModulus: string, data: Uint8Array, signature: Uint8Array): Promise; encrypt(data: Buffer, key: string | Buffer, salt?: string): Promise; decrypt(encrypted: Buffer, key: string | Buffer, salt?: string): Promise; private jwkToCryptoKey; private jwkToPublicCryptoKey; }