encode1271Signature
Encodes a 1271 signature for the account type. This is the signature that should then be verified onchain.
Usage
const signature = encode1271Signature({
accoutn: "0x1234...",
validator: OWNABLE_VALIDATOR_ADDRESS,
signature: "0xabcd...",
});
Parameters
account
The address of the account to validate the 1271 signature.
validator
The address of the validator to validate the 1271 signature.
signature
- Type:
Hex
(opens in a new tab)
The signature to encode.
Returns
encodedSignature
- Type:
Hex
(opens in a new tab)
The encoded 1271 signature.