Skip to content

Commit

Permalink
remove custom sha-256 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-rdx committed May 30, 2023
1 parent 63a379c commit 6390129
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.radixdlt.crypto.ec
import org.bouncycastle.math.ec.ECPoint
import org.bouncycastle.math.ec.FixedPointCombMultiplier
import java.math.BigInteger
import java.util.*
import java.util.Arrays


fun EllipticCurve.publicFromPrivate(privateKey: BigInteger): BigInteger {
Expand Down
153 changes: 0 additions & 153 deletions src/main/kotlin/com/radixdlt/crypto/hash/sha256/Sha256.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.radixdlt.crypto.hash.sha256.extensions

import com.radixdlt.crypto.hash.sha256.Sha256
import java.security.MessageDigest

/**
* Returns the SHA256 digest of this byte array.
*/
fun ByteArray.sha256(): ByteArray = Sha256.digest(this)
fun ByteArray.sha256(): ByteArray = MessageDigest.getInstance("SHA-256").digest(this)

/**
* Returns the SHA256 digest of this string.
Expand Down

0 comments on commit 6390129

Please sign in to comment.