mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-18 21:34:39 +01:00
Adding ECKeys and interface for checking transaction signatures
This commit is contained in:
parent
4e93ff3e37
commit
c15273a722
11
src/main/scala/org/scalacoin/crypto/ECKey.scala
Normal file
11
src/main/scala/org/scalacoin/crypto/ECKey.scala
Normal file
@ -0,0 +1,11 @@
|
||||
package org.scalacoin.crypto
|
||||
|
||||
/**
|
||||
* Created by chris on 2/16/16.
|
||||
*/
|
||||
trait ECKey {
|
||||
def privateKey : Option[ECPrivateKey]
|
||||
def publicKey : ECPublicKey
|
||||
}
|
||||
|
||||
case class ECKeyImpl(privateKey : Option[ECPrivateKey], publicKey : ECPublicKey) extends ECKey
|
@ -0,0 +1,9 @@
|
||||
package org.scalacoin.crypto
|
||||
|
||||
/**
|
||||
* Created by chris on 2/16/16.
|
||||
*/
|
||||
trait TransactionSignatureChecker extends BaseSignatureChecker {
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user