mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 14:50:42 +01:00
Make ECDigitalSignature extend NetworkElement (#1750)
This commit is contained in:
parent
e7b4ec5a1b
commit
231b692fdf
1 changed files with 1 additions and 2 deletions
|
@ -5,10 +5,9 @@ import scodec.bits.ByteVector
|
||||||
/**
|
/**
|
||||||
* Created by chris on 2/26/16.
|
* 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(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")
|
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 =
|
override def equals(other: Any): Boolean =
|
||||||
other match {
|
other match {
|
||||||
|
|
Loading…
Add table
Reference in a new issue