Docs
Reference
Contract documentation
L2
TaikoL2Signer

TaikoL2Signer

This contract allows for signing operations required on Taiko L2.

It uses precomputed values for optimized signature creation.

GOLDEN_TOUCH_ADDRESS

address GOLDEN_TOUCH_ADDRESS

GOLDEN_TOUCH_PRIVATEKEY

uint256 GOLDEN_TOUCH_PRIVATEKEY

L2_INVALID_GOLDEN_TOUCH_K

error L2_INVALID_GOLDEN_TOUCH_K()

signAnchor

function signAnchor(bytes32 digest, uint8 k) public view returns (uint8 v, uint256 r, uint256 s)

Signs the provided digest using the golden touch mechanism.

Parameters

NameTypeDescription
digestbytes32The hash of the data to be signed.
kuint8The selector for signature optimization.

Return Values

NameTypeDescription
vuint8The recovery id.
ruint256The r component of the signature.
suint256The s component of the signature.