Skip to content

Commit

Permalink
asset: move PendingGroupWitness
Browse files Browse the repository at this point in the history
Relocate the PendingGroupWitness struct to improve code
organization and readability.
  • Loading branch information
ffranr committed Dec 4, 2024
1 parent b4e9128 commit 5b66f0a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions asset/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5b66f0a

Please sign in to comment.