6 chainjson "github.com/vapor/encoding/json"
9 // DataWitness used sign transaction
10 type DataWitness chainjson.HexBytes
12 func (dw DataWitness) materialize(args *[][]byte) error {
13 *args = append(*args, dw)
17 // MarshalJSON marshal DataWitness
18 func (dw DataWitness) MarshalJSON() ([]byte, error) {
20 Type string `json:"type"`
21 Value chainjson.HexBytes `json:"value"`
24 Value: chainjson.HexBytes(dw),
26 return json.Marshal(x)