github.com/MetalBlockchain/metalgo@v1.11.9/vms/secp256k1fx/tx.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package secp256k1fx
     5  
     6  // UnsignedTx that this Fx is supporting
     7  type UnsignedTx interface {
     8  	Bytes() []byte
     9  }
    10  
    11  var _ UnsignedTx = (*TestTx)(nil)
    12  
    13  // TestTx is a minimal implementation of a Tx
    14  type TestTx struct{ UnsignedBytes []byte }
    15  
    16  // Bytes returns UnsignedBytes
    17  func (tx *TestTx) Bytes() []byte {
    18  	return tx.UnsignedBytes
    19  }