Skip to content

Commit

Permalink
Make ECDigitalSignature extend NetworkElement (#1750)
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Aug 4, 2020
1 parent 1c2bc70 commit 82ab96c
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -5,10 +5,9 @@ import scodec.bits.ByteVector
/**
* Created by chris on 2/26/16.
*/
sealed abstract class ECDigitalSignature {
sealed abstract class ECDigitalSignature extends NetworkElement {
require(r.signum == 1 || r.signum == 0, s"r must not be negative, got $r")
require(s.signum == 1 || s.signum == 0, s"s must not be negative, got $s")
def hex: String = CryptoBytesUtil.encodeHex(bytes)

override def equals(other: Any): Boolean =
other match {
Expand Down

0 comments on commit 82ab96c

Please sign in to comment.