File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,15 +117,17 @@ type BaseUniverseStore interface {
117
117
// for a specific proof type.
118
118
//
119
119
// NOTE: This makes an assumption that only specifiers with a group key are
120
- // valid.
120
+ // valid for the ignore and burn proof types .
121
121
func specifierToIdentifier (spec asset.Specifier ,
122
122
proofType universe.ProofType ) (universe.Identifier , error ) {
123
123
124
124
var id universe.Identifier
125
125
126
126
// The specifier must have a group key to be able to be used within the
127
127
// ignore or burn tree context.
128
- if ! spec .HasGroupPubKey () {
128
+ requireGroupKey := proofType == universe .ProofTypeIgnore ||
129
+ proofType == universe .ProofTypeBurn
130
+ if requireGroupKey && ! spec .HasGroupPubKey () {
129
131
return id , fmt .Errorf ("group key must be set for proof type %v" ,
130
132
proofType )
131
133
}
You can’t perform that action at this time.
0 commit comments