We implement programmatically transactions that are able to submit bitcoin scripts and broadcast them onto mainnet/testnet blockchain.
- PayToPubKey (P2PK)
- Direct signed payment to a specified address.
- PayToPubKeyHash (P2PKH)
- Signed payment to the hash value of a specified address.
- LinearEquationTransaction
- Create a transaction that can only be redeeemed by the solution to linear equations
- x + y = PIN_1
- x - y = PIN_2
- Create a transaction that can only be redeeemed by the solution to linear equations
- MutiSigTransaction
- A our-party transaction that requires a bank's and 1-of-3 customer's signature to redeem
Switch mainnet/testnet in ScriptTests.java and run it as JUnit to execute the transactions
Addresses (public key) can be generated by printAddress() function