@@ -63,13 +63,14 @@ type MintingBatch struct {
6363 // reveal for that asset, if it has one.
6464 AssetMetas AssetMetas
6565
66- // UniverseCommitments is a flag that determines whether the minting
67- // event supports universe commitments. When set to true, the batch must
68- // include only assets that share the same asset group key.
66+ // SupplyCommitments is a flag that determines whether the minting
67+ // event supports universe supply commitments. When set to true, the
68+ // batch must include only assets that share the same asset group key.
6969 //
70- // Universe commitments are minter-controlled, on-chain anchored
71- // attestations regarding the state of the universe.
72- UniverseCommitments bool
70+ // Universe supply commitments are minter-controlled, on-chain anchored
71+ // attestations regarding the state of the universe supply (issued,
72+ // ignored, burnt, etc).
73+ SupplyCommitments bool
7374
7475 // mintingPubKey is the top-level Taproot output key that will be used
7576 // to commit to the Taproot Asset commitment above.
@@ -110,7 +111,7 @@ func (m *MintingBatch) Copy() *MintingBatch {
110111 // set, so a shallow copy is sufficient.
111112 BatchKey : m .BatchKey ,
112113 RootAssetCommitment : m .RootAssetCommitment ,
113- UniverseCommitments : m . UniverseCommitments ,
114+ SupplyCommitments : m . SupplyCommitments ,
114115 mintingPubKey : m .mintingPubKey ,
115116 tapSibling : m .tapSibling ,
116117 }
@@ -323,7 +324,7 @@ func (m *MintingBatch) HasSeedlings() bool {
323324func (m * MintingBatch ) validateDelegationKey (newSeedling Seedling ) error {
324325 // If the universe commitment flag is disabled, then the delegation key
325326 // should not be set.
326- if ! newSeedling .UniverseCommitments {
327+ if ! newSeedling .SupplyCommitments {
327328 if newSeedling .DelegationKey .IsSome () {
328329 return fmt .Errorf ("delegation key must not be set " +
329330 "for seedling without universe commitments" )
@@ -395,7 +396,7 @@ func (m *MintingBatch) validateUniCommitment(newSeedling Seedling) error {
395396 // If there are no seedlings in the batch, and the first
396397 // (subject) seedling doesn't enable universe commitment, we can
397398 // accept it without further checks.
398- if ! newSeedling .UniverseCommitments {
399+ if ! newSeedling .SupplyCommitments {
399400 return nil
400401 }
401402
@@ -442,14 +443,14 @@ func (m *MintingBatch) validateUniCommitment(newSeedling Seedling) error {
442443 // Therefore, when evaluating this new candidate seedling for inclusion
443444 // in the batch, we must ensure that its universe commitment flag state
444445 // matches the flag state of the batch.
445- if m .UniverseCommitments != newSeedling .UniverseCommitments {
446+ if m .SupplyCommitments != newSeedling .SupplyCommitments {
446447 return fmt .Errorf ("seedling universe commitment flag does " +
447448 "not match batch" )
448449 }
449450
450451 // If the universe commitment flag is disabled for both the seedling and
451452 // the batch, no additional checks are required.
452- if ! m .UniverseCommitments && ! newSeedling .UniverseCommitments {
453+ if ! m .SupplyCommitments && ! newSeedling .SupplyCommitments {
453454 return nil
454455 }
455456
@@ -459,7 +460,7 @@ func (m *MintingBatch) validateUniCommitment(newSeedling Seedling) error {
459460 // * the batch contains at least one seedling.
460461 //
461462 // For clarity, we will assert these conditions now.
462- if ! m .UniverseCommitments || ! newSeedling .UniverseCommitments ||
463+ if ! m .SupplyCommitments || ! newSeedling .SupplyCommitments ||
463464 ! m .HasSeedlings () {
464465
465466 return fmt .Errorf ("unexpected code path reached" )
@@ -520,7 +521,7 @@ func (m *MintingBatch) AddSeedling(newSeedling Seedling) error {
520521 // seedling being added to the batch, the batch universe commitment flag
521522 // can be set to match the seedling's flag state.
522523 if ! m .HasSeedlings () {
523- m .UniverseCommitments = newSeedling .UniverseCommitments
524+ m .SupplyCommitments = newSeedling .SupplyCommitments
524525 }
525526
526527 // Ensure that the delegation key is valid for the seedling being
0 commit comments