Skip to content
Snippets Groups Projects
Select Git revision
  • fb1fd903f4ca3cb2142a468f5f1d64ef462eac4d
  • main default protected
  • v0.1.0
3 results

dumper.go

Blame
  • valuebundlefactory.go 664 B
    package client
    
    import (
    	"github.com/iotaledger/iota.go/consts"
    	"github.com/iotaledger/iota.go/trinary"
    )
    
    type ValueBundleFactory struct {
    	seed          trinary.Trytes
    	securityLevel consts.SecurityLevel
    	seedInputs    map[uint64]uint64
    	seedOutputs   map[uint64]uint64
    }
    
    func New(seed trinary.Trytes, securityLevel consts.SecurityLevel) *ValueBundleFactory {
    	return &ValueBundleFactory{
    		seed:          seed,
    		securityLevel: securityLevel,
    		seedInputs:    make(map[uint64]uint64),
    		seedOutputs:   make(map[uint64]uint64),
    	}
    }
    
    func (factory *ValueBundleFactory) AddInput(addressIndex uint64, value uint64) {
    	factory.seedInputs[addressIndex] = value
    }