From 438cb63b8fcb17ae3c64b1d3d32ee58d4204e5f3 Mon Sep 17 00:00:00 2001 From: fluency03 Date: Fri, 27 Apr 2018 20:49:11 +0100 Subject: [PATCH] add type UTXO --- src/main/scala/com/fluency03/blockchain/package.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/com/fluency03/blockchain/package.scala b/src/main/scala/com/fluency03/blockchain/package.scala index 4c7e5e9..f5046cb 100644 --- a/src/main/scala/com/fluency03/blockchain/package.scala +++ b/src/main/scala/com/fluency03/blockchain/package.scala @@ -5,6 +5,7 @@ import java.security.{MessageDigest, PrivateKey, PublicKey} import java.time.Instant import com.fluency03.blockchain.Crypto.{privateKeyToHex, publicKeyToHex} +import com.fluency03.blockchain.core.{TxIn, TxOut} import org.bouncycastle.util.encoders.{Base64, Hex} import org.json4s.{Formats, NoTypeHints} import org.json4s.native.Serialization @@ -14,6 +15,7 @@ import scala.io.Source package object blockchain { type Bytes = Array[Byte] + type UTXO = (TxIn, TxOut) implicit val formats: AnyRef with Formats = Serialization.formats(NoTypeHints)