OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / protocol / bc / claim.go
diff --git a/protocol/bc/claim.go b/protocol/bc/claim.go
deleted file mode 100644 (file)
index 14baf45..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-package bc
-
-import "io"
-
-func (Claim) typ() string { return "claim1" }
-func (c *Claim) writeForHash(w io.Writer) {
-       mustWriteForHash(w, c.Peginwitness)
-}
-
-// SetDestination is support function for map tx
-func (c *Claim) SetDestination(id *Hash, val *AssetAmount, pos uint64) {
-       c.WitnessDestination = &ValueDestination{
-               Ref:      id,
-               Value:    val,
-               Position: pos,
-       }
-}
-
-func NewClaim(spentOutputID *Hash, ordinal uint64, peginwitness [][]byte) *Claim {
-       return &Claim{
-               SpentOutputId: spentOutputID,
-               Ordinal:       ordinal,
-               Peginwitness:  peginwitness,
-       }
-}