aes_gcm_decrypt
On-chain AES-256-GCM decryption
Overview
Signature
def aes_gcm_decrypt(
w3: Web3,
*,
aes_key: Bytes32,
nonce: int | EncryptionNonce,
ciphertext: bytes,
) -> HexBytes
async def async_aes_gcm_decrypt(
w3: AsyncWeb3,
*,
aes_key: Bytes32,
nonce: int | EncryptionNonce,
ciphertext: bytes,
) -> HexBytesParameters
Parameter
Type
Required
Description
Returns
Type
Description
Examples
Basic Usage
With Integer Nonce
With EncryptionNonce
Async Usage
Decrypt Multiple Messages
Handle Decryption Failure
With ECDH-Derived Key
Convert Result to String
How It Works
Gas Cost
Notes
Warnings
See Also
Last updated

