// Path: wallet_lib/src/main/java/de/uni_bonn/bit/BitcoinECMathHelper.java
// public static ECKey convertBigIntToPrivKey(BigInteger bigInt){
//     checkArgument(bigInt.compareTo(BigInteger.ONE) >= 0, "A private key must be >= 1");
//     checkArgument(bigInt.compareTo(ECKey.CURVE.getN()) < 0, "A private key must be <= N_EC");
//     return ECKey.fromPrivate(bigInt);
// }


import org.bitcoinj.core.*;
import org.bitcoinj.params.UnitTestParams;
import de.uni_bonn.bit.wallet_protocol.*;
import org.junit.Test;
import java.math.BigInteger;
import static de.uni_bonn.bit.BitcoinECMathHelper.convertBigIntToPrivKey;
/*
* Copyright 2014 Christopher Mann
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.uni_bonn.bit;




/**
 * This class tests the classes {@link de.uni_bonn.bit.DesktopTransactionSigner} and
 * {@link de.uni_bonn.bit.PhoneTransactionSigner} which contains the Bitcoin specific logic
 * for signing Bitcoin transactions with the two-party ECDSA signature protocol.
 */
public class TransactionSignerTests extends TransactionSignerBaseTest {

    /**
     * This test signs a Bitcoin transaction with the two-party ECDSA signature protocol.
     * @throws InsufficientMoneyException
     */
    @Test
    public void testTheTransactionSigners() throws InsufficientMoneyException {
// Path: wallet_lib/src/main/java/de/uni_bonn/bit/BitcoinECMathHelper.java
// public static ECKey convertBigIntToPrivKey(BigInteger bigInt){
//     checkArgument(bigInt.compareTo(BigInteger.ONE) >= 0, "A private key must be >= 1");
//     checkArgument(bigInt.compareTo(ECKey.CURVE.getN()) < 0, "A private key must be <= N_EC");
//     return ECKey.fromPrivate(bigInt);
// }


// Path: wallet_lib/src/test/java/de/uni_bonn/bit/TransactionSignerTests.java
import org.bitcoinj.core.*;
import org.bitcoinj.params.UnitTestParams;
import de.uni_bonn.bit.wallet_protocol.*;
import org.junit.Test;
import java.math.BigInteger;
import static de.uni_bonn.bit.BitcoinECMathHelper.convertBigIntToPrivKey;

/*
* Copyright 2014 Christopher Mann
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.uni_bonn.bit;




/**
 * This class tests the classes {@link de.uni_bonn.bit.DesktopTransactionSigner} and
 * {@link de.uni_bonn.bit.PhoneTransactionSigner} which contains the Bitcoin specific logic
 * for signing Bitcoin transactions with the two-party ECDSA signature protocol.
 */
public class TransactionSignerTests extends TransactionSignerBaseTest {

    /**
     * This test signs a Bitcoin transaction with the two-party ECDSA signature protocol.
     * @throws InsufficientMoneyException
     */
    @Test
    public void testTheTransactionSigners() throws InsufficientMoneyException {
        ECKey receiverKey = convertBigIntToPrivKey(new BigInteger("100"));