diff --git a/packages/model/metabundle/metabundle.go b/packages/model/metabundle/metabundle.go new file mode 100644 index 0000000000000000000000000000000000000000..75a132cae7f95b67f8d3c4a715e30232ddc66911 --- /dev/null +++ b/packages/model/metabundle/metabundle.go @@ -0,0 +1,31 @@ +package metabundle + +import ( + "github.com/iotaledger/goshimmer/packages/model/meta_transaction" + "github.com/iotaledger/goshimmer/packages/ternary" +) + +type MetaBundle struct { + hash ternary.Trytes + transactionHashes []ternary.Trytes +} + +func New(transactions []*meta_transaction.MetaTransaction) (result *MetaBundle) { + result = &MetaBundle{ + hash: CalculateBundleHash(transactions), + } + + return +} + +func (bundle *MetaBundle) GetTransactionHashes() []ternary.Trytes { + +} + +func (bundle *MetaBundle) GetHash() { + +} + +func CalculateBundleHash(transactions []*meta_transaction.MetaTransaction) ternary.Trytes { + return ternary.Trytes("A") +}