Use DL as the address prefix instead of R3.

This commit is contained in:
Mike Hearn 2016-02-05 15:49:26 +01:00
parent f705eee312
commit b57f30ff3e

View File

@ -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()
}