@keplr-wallet/types
Version:
11 lines (10 loc) • 366 B
text/typescript
export interface SecretUtils {
getPubkey: () => Promise<Uint8Array>;
decrypt: (ciphertext: Uint8Array, nonce: Uint8Array) => Promise<Uint8Array>;
encrypt: (
contractCodeHash: string,
// eslint-disable-next-line @typescript-eslint/ban-types
msg: object
) => Promise<Uint8Array>;
getTxEncryptionKey: (nonce: Uint8Array) => Promise<Uint8Array>;
}