From b57f30ff3e88dfd0b15e979e34fe5075797e9a6f Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 5 Feb 2016 15:49:26 +0100 Subject: [PATCH] Use DL as the address prefix instead of R3. --- src/main/kotlin/core/Crypto.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/core/Crypto.kt b/src/main/kotlin/core/Crypto.kt index d08688b007..57900d756e 100644 --- a/src/main/kotlin/core/Crypto.kt +++ b/src/main/kotlin/core/Crypto.kt @@ -116,7 +116,7 @@ fun PublicKey.verifyWithECDSA(content: ByteArray, signature: DigitalSignature) { /** Render a public key to a string, using a short form if it's an elliptic curve public key */ fun PublicKey.toStringShort(): String { return (this as? ECPublicKey)?.let { key -> - "R3" + Base58.encode(key.w.affineX.toByteArray()) + "DL" + Base58.encode(key.w.affineX.toByteArray()) // DL -> Distributed Ledger } ?: toString() }