From 23735cc1a1a7748bfb7c00bf9cf8ad109afe277b Mon Sep 17 00:00:00 2001 From: ffranr Date: Wed, 4 Dec 2024 14:50:17 +0000 Subject: [PATCH] asset: move PendingGroupWitness Relocate the PendingGroupWitness struct to improve code organization and readability. --- asset/asset.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/asset/asset.go b/asset/asset.go index dd847b992..25bd33d3f 100644 --- a/asset/asset.go +++ b/asset/asset.go @@ -989,13 +989,6 @@ func (g *GroupKeyRevealV0) SetTapscriptRoot(tapscriptRoot []byte) { g.tapscriptRoot = tapscriptRoot } -// PendingGroupWitness specifies the asset group witness for an asset seedling -// in an unsealed minting batch. -type PendingGroupWitness struct { - GenID ID - Witness wire.TxWitness -} - // GroupPubKey returns the group public key derived from the group key reveal. func (g *GroupKeyRevealV0) GroupPubKey(assetID ID) (*btcec.PublicKey, error) { rawKey, err := g.RawKey().ToPubKey() @@ -1544,6 +1537,13 @@ func DeriveGroupKey(genSigner GenesisSigner, genTx GroupVirtualTx, }, nil } +// PendingGroupWitness specifies the asset group witness for an asset seedling +// in an unsealed minting batch. +type PendingGroupWitness struct { + GenID ID + Witness wire.TxWitness +} + // Asset represents a Taproot asset. type Asset struct { // Version is the Taproot Asset version of the asset.