From 5b66f0ae09e67a811d80218b7f700110c5867296 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 1a3dbbf1c..1312f0d6a 100644 --- a/asset/asset.go +++ b/asset/asset.go @@ -986,13 +986,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() @@ -1541,6 +1534,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.