Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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