@othent/kms-unbundled
Version:
Arweave Oauth Othent wallets enabled Google Key Management Service.
7 lines (6 loc) • 305 B
TypeScript
/**
* Encrypt data with the users JWK. This function assumes (and requires) a user is logged in and a valid string to sign.
* @param plaintext The data in string format to sign.
* @returns The encrypted data.
*/
export declare function encrypt(plaintext: string): Promise<Uint8Array | string | null>;