mirror of
https://github.com/corda/corda.git
synced 2024-12-21 22:07:55 +00:00
Use DL as the address prefix instead of R3.
This commit is contained in:
parent
f705eee312
commit
b57f30ff3e
@ -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 */
|
/** Render a public key to a string, using a short form if it's an elliptic curve public key */
|
||||||
fun PublicKey.toStringShort(): String {
|
fun PublicKey.toStringShort(): String {
|
||||||
return (this as? ECPublicKey)?.let { key ->
|
return (this as? ECPublicKey)?.let { key ->
|
||||||
"R3" + Base58.encode(key.w.affineX.toByteArray())
|
"DL" + Base58.encode(key.w.affineX.toByteArray()) // DL -> Distributed Ledger
|
||||||
} ?: toString()
|
} ?: toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user