forge_attestation

Documentation for eth_defi.cctp.testing.forge_attestation function.

forge_attestation(message, attester)

Sign a CCTP message with a test attester to create a valid attestation.

The attestation is an ECDSA signature over keccak256(message). For CCTP, the signature format is 65 bytes: r (32) + s (32) + v (1).

Parameters
Returns

65-byte attestation (ECDSA signature)

Return type

bytes