<commit_before>package fr.acinq.eclair

import fr.acinq.bitcoin.{Base58Check, Crypto, OP_0, OP_PUSHDATA, Script}
import fr.acinq.bitcoin.Crypto.Scalar
import fr.acinq.eclair.channel._
import fr.acinq.eclair.transactions.Scripts

/**
  * Created by PM on 26/04/2016.
  */
object TestConstants {
  val fundingSatoshis = 1000000L
  val pushMsat = 200000000L

  object Alice {
    val channelParams = LocalParams(
      dustLimitSatoshis = 542,
      maxHtlcValueInFlightMsat = Long.MaxValue,
      channelReserveSatoshis = 0,
      htlcMinimumMsat = 0,
      feeratePerKw = 10000,
      toSelfDelay = 144,
      maxAcceptedHtlcs = 100,
      fundingPrivKey = Scalar(Array.fill[Byte](32)(1) :+ 1.toByte),
      revocationSecret = Scalar(Array.fill[Byte](32)(2) :+ 1.toByte),
      paymentKey = Scalar(Array.fill[Byte](32)(3) :+ 1.toByte),
      delayedPaymentKey = Scalar(Array.fill[Byte](32)(4) :+ 1.toByte),
      defaultFinalScriptPubKey = Script.pay2wpkh(Scalar(Array.fill[Byte](32)(5) :+ 1.toByte).toPoint),
      shaSeed = Crypto.sha256("alice-seed".getBytes()),
      isFunder = true
    )
  }

  object Bob {
    val channelParams = LocalParams(
      dustLimitSatoshis = 542,
      maxHtlcValueInFlightMsat = Long.MaxValue,
      channelReserveSatoshis = 0,
      htlcMinimumMsat = 0,
      feeratePerKw = 10000,
      toSelfDelay = 144,
      maxAcceptedHtlcs = 100,
      fundingPrivKey = Scalar(Array.fill[Byte](32)(11) :+ 1.toByte),
      revocationSecret = Scalar(Array.fill[Byte](32)(12) :+ 1.toByte),
      paymentKey = Scalar(Array.fill[Byte](32)(13) :+ 1.toByte),
      delayedPaymentKey = Scalar(Array.fill[Byte](32)(14) :+ 1.toByte),
      defaultFinalScriptPubKey = Script.pay2wpkh(Scalar(Array.fill[Byte](32)(15) :+ 1.toByte).toPoint),
      shaSeed = Crypto.sha256("alice-seed".getBytes()),
      isFunder = false
    )
  }

}
<commit_msg>using a different seed for alice and bob in tests<commit_after>package fr.acinq.eclair

import fr.acinq.bitcoin.{Base58Check, Crypto, OP_0, OP_PUSHDATA, Script}
import fr.acinq.bitcoin.Crypto.Scalar
import fr.acinq.eclair.channel._
import fr.acinq.eclair.transactions.Scripts

/**
  * Created by PM on 26/04/2016.
  */
object TestConstants {
  val fundingSatoshis = 1000000L
  val pushMsat = 200000000L

  object Alice {
    val channelParams = LocalParams(
      dustLimitSatoshis = 542,
      maxHtlcValueInFlightMsat = Long.MaxValue,
      channelReserveSatoshis = 0,
      htlcMinimumMsat = 0,
      feeratePerKw = 10000,
      toSelfDelay = 144,
      maxAcceptedHtlcs = 100,
      fundingPrivKey = Scalar(Array.fill[Byte](32)(1) :+ 1.toByte),
      revocationSecret = Scalar(Array.fill[Byte](32)(2) :+ 1.toByte),
      paymentKey = Scalar(Array.fill[Byte](32)(3) :+ 1.toByte),
      delayedPaymentKey = Scalar(Array.fill[Byte](32)(4) :+ 1.toByte),
      defaultFinalScriptPubKey = Script.pay2wpkh(Scalar(Array.fill[Byte](32)(5) :+ 1.toByte).toPoint),
      shaSeed = Crypto.sha256("alice-seed".getBytes()),
      isFunder = true
    )
  }

  object Bob {
    val channelParams = LocalParams(
      dustLimitSatoshis = 542,
      maxHtlcValueInFlightMsat = Long.MaxValue,
      channelReserveSatoshis = 0,
      htlcMinimumMsat = 0,
      feeratePerKw = 10000,
      toSelfDelay = 144,
      maxAcceptedHtlcs = 100,
      fundingPrivKey = Scalar(Array.fill[Byte](32)(11) :+ 1.toByte),
      revocationSecret = Scalar(Array.fill[Byte](32)(12) :+ 1.toByte),
      paymentKey = Scalar(Array.fill[Byte](32)(13) :+ 1.toByte),
      delayedPaymentKey = Scalar(Array.fill[Byte](32)(14) :+ 1.toByte),
      defaultFinalScriptPubKey = Script.pay2wpkh(Scalar(Array.fill[Byte](32)(15) :+ 1.toByte).toPoint),
      shaSeed = Crypto.sha256("bob-seed".getBytes()),
      isFunder = false
    )
  }

}

{'fraction_non_alphanumeric': 0.13386666666666666, 'fraction_numerical': 0.05973333333333333, 'mean_word_length': 3.4654761904761906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3833659', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1351, 'n_words': 215}