Skip to content

Commit

Permalink
add type UTXO
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed Apr 27, 2018
1 parent ca67f9c commit 438cb63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/com/fluency03/blockchain/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 438cb63

Please sign in to comment.