Skip to content

Instantly share code, notes, and snippets.

@torkelrogstad
Created June 12, 2019 11:16
Show Gist options
  • Save torkelrogstad/fa6ab1c6e3feb64f121c7bd3fa8dd126 to your computer and use it in GitHub Desktop.
Save torkelrogstad/fa6ab1c6e3feb64f121c7bd3fa8dd126 to your computer and use it in GitHub Desktop.
// pay-to-pubkey-hash address
import org.bitcoins.core.protocol.P2PKHAddress
// we're reusing the same private/public key pair
// from before. don't do this in an actual application!
val legacyAddress = P2PKHAddress(pubkey, TestNet3)
// legacyAddress: P2PKHAddress = mhc1Sh6HKsLkybe5TVG3mJKw6FEpjC4LT2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment