Skip to content

Programmatically transactions that submits BTC scripts onto the blockchain

Notifications You must be signed in to change notification settings

qtds35k/BtcScriptTransactions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Script Transactions

We implement programmatically transactions that are able to submit bitcoin scripts and broadcast them onto mainnet/testnet blockchain.

  1. PayToPubKey (P2PK)
    • Direct signed payment to a specified address.
  2. PayToPubKeyHash (P2PKH)
    • Signed payment to the hash value of a specified address.
  3. LinearEquationTransaction
    • Create a transaction that can only be redeeemed by the solution to linear equations
      • x + y = PIN_1
      • x - y = PIN_2
  4. 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

Reference

About

Programmatically transactions that submits BTC scripts onto the blockchain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages