OSDN Git Service

Thanos did someting
[bytom/vapor.git] / blockchain / txbuilder / data_witness.go
diff --git a/blockchain/txbuilder/data_witness.go b/blockchain/txbuilder/data_witness.go
deleted file mode 100644 (file)
index 333bdb5..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package txbuilder
-
-import (
-       "encoding/json"
-
-       chainjson "github.com/vapor/encoding/json"
-)
-
-// DataWitness used sign transaction
-type DataWitness chainjson.HexBytes
-
-func (dw DataWitness) Materialize(args *[][]byte) error {
-       *args = append(*args, dw)
-       return nil
-}
-
-// MarshalJSON marshal DataWitness
-func (dw DataWitness) MarshalJSON() ([]byte, error) {
-       x := struct {
-               Type  string             `json:"type"`
-               Value chainjson.HexBytes `json:"value"`
-       }{
-               Type:  "data",
-               Value: chainjson.HexBytes(dw),
-       }
-       return json.Marshal(x)
-}