Secp256k1Layout constructor

Secp256k1Layout({
  1. required ETHAddress ethAddress,
  2. required int numSignatures,
  3. required int signatureOffset,
  4. required int signatureInstructionIndex,
  5. required int ethAddressOffset,
  6. required int ethAddressInstructionIndex,
  7. required int messageDataOffset,
  8. required int messageDataSize,
  9. required int messageInstructionIndex,
  10. required List<int> signature,
  11. required List<int> message,
  12. 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);