Secp256k1Layout constructor
Secp256k1Layout({
- required ETHAddress ethAddress,
- required int numSignatures,
- required int signatureOffset,
- required int signatureInstructionIndex,
- required int ethAddressOffset,
- required int ethAddressInstructionIndex,
- required int messageDataOffset,
- required int messageDataSize,
- required int messageInstructionIndex,
- required List<
int> signature, - required List<
int> message, - required int recoveryId,
Constructs a Secp256k1Layout instance.
Implementation
Secp256k1Layout({
required this.ethAddress,
required this.numSignatures,
required this.signatureOffset,
required this.signatureInstructionIndex,
required this.ethAddressOffset,
required this.ethAddressInstructionIndex,
required this.messageDataOffset,
required this.messageDataSize,
required this.messageInstructionIndex,
required List<int> signature,
required List<int> message,
required this.recoveryId,
}) : signature = BytesUtils.toBytes(signature, unmodifiable: true),
message = BytesUtils.toBytes(message, unmodifiable: true);