Skip to content

Commit

Permalink
WIP: asset: add GroupKeyRevealVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
ffranr committed Dec 5, 2024
1 parent e4bcdba commit 1a11feb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions asset/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,25 @@ type GroupVirtualTx struct {
TweakedKey btcec.PublicKey
}

// GroupKeyRevealVersion specifies the version of the group key reveal data.
type GroupKeyRevealVersion uint8

const (
// GroupKeyRevealVersion0 specifies version number 0 for a group key
// reveal data structure.
GroupKeyRevealVersion0 GroupKeyRevealVersion = 0

// GroupKeyRevealVersion1 specifies version number 1 for a group key
// reveal data structure.
GroupKeyRevealVersion1 GroupKeyRevealVersion = 1
)

const (
// LatestGroupKeyRevealVersion is the latest supported group key reveal
// version.
LatestGroupKeyRevealVersion = GroupKeyRevealVersion1
)

// GroupKeyReveal represents the data used to derive the adjusted key that
// uniquely identifies an asset group.
type GroupKeyReveal interface {
Expand Down

0 comments on commit 1a11feb

Please sign in to comment.