Created
June 12, 2019 11:16
-
-
Save torkelrogstad/fa6ab1c6e3feb64f121c7bd3fa8dd126 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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