gecko/vms/secp256k1fx/tx.go

16 lines
375 B
Go
Raw Normal View History

2020-03-10 12:20:34 -07:00
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package secp256k1fx
// Tx that this Fx is supporting
type Tx interface {
UnsignedBytes() []byte
}
2020-03-30 13:23:06 -07:00
// TestTx is a minimal implementation of a Tx
type TestTx struct{ Bytes []byte }
// UnsignedBytes returns Bytes
func (tx *TestTx) UnsignedBytes() []byte { return tx.Bytes }