github.com/MetalBlockchain/metalgo@v1.11.9/vms/secp256k1fx/mint_output.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  import "github.com/MetalBlockchain/metalgo/vms/components/verify"
     7  
     8  var _ verify.State = (*MintOutput)(nil)
     9  
    10  type MintOutput struct {
    11  	verify.IsState `json:"-"`
    12  
    13  	OutputOwners `serialize:"true"`
    14  }
    15  
    16  func (out *MintOutput) Verify() error {
    17  	switch {
    18  	case out == nil:
    19  		return ErrNilOutput
    20  	default:
    21  		return out.OutputOwners.Verify()
    22  	}
    23  }