Skip to content

Commit 23735cc

Browse files
committed
asset: move PendingGroupWitness
Relocate the PendingGroupWitness struct to improve code organization and readability.
1 parent a332fe7 commit 23735cc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

asset/asset.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,6 @@ func (g *GroupKeyRevealV0) SetTapscriptRoot(tapscriptRoot []byte) {
989989
g.tapscriptRoot = tapscriptRoot
990990
}
991991

992-
// PendingGroupWitness specifies the asset group witness for an asset seedling
993-
// in an unsealed minting batch.
994-
type PendingGroupWitness struct {
995-
GenID ID
996-
Witness wire.TxWitness
997-
}
998-
999992
// GroupPubKey returns the group public key derived from the group key reveal.
1000993
func (g *GroupKeyRevealV0) GroupPubKey(assetID ID) (*btcec.PublicKey, error) {
1001994
rawKey, err := g.RawKey().ToPubKey()
@@ -1544,6 +1537,13 @@ func DeriveGroupKey(genSigner GenesisSigner, genTx GroupVirtualTx,
15441537
}, nil
15451538
}
15461539

1540+
// PendingGroupWitness specifies the asset group witness for an asset seedling
1541+
// in an unsealed minting batch.
1542+
type PendingGroupWitness struct {
1543+
GenID ID
1544+
Witness wire.TxWitness
1545+
}
1546+
15471547
// Asset represents a Taproot asset.
15481548
type Asset struct {
15491549
// Version is the Taproot Asset version of the asset.

0 commit comments

Comments
 (0)