Skip to content

Commit

Permalink
Merge pull request #4 from radixdlt/chore/ABW-1281-remove-custom-sha2…
Browse files Browse the repository at this point in the history
…56-implementation

remove custom sha-256 implementation
  • Loading branch information
jakub-rdx authored Oct 24, 2023
2 parents 9b864c2 + 2640eda commit 0bc8f11
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 157 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "com.radixdlt"
version = "1.0-snapshot"
version = "1.2-snapshot"

repositories {
mavenCentral()
Expand Down
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 0bc8f11

Please sign in to comment.