Skip to content

Commit

Permalink
universe: allow registering non-issuance proofs in universe/multiverse
Browse files Browse the repository at this point in the history
  • Loading branch information
ffranr committed Sep 4, 2023
1 parent 485bc03 commit f4fa19b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions universe/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,6 @@ func (a *MintingArchive) RegisterIssuance(ctx context.Context, id Identifier,
return nil, fmt.Errorf("asset id mismatch: expected %v, got %v",
id.AssetID, newAsset.ID())

// The outpoint of the final resting place of the asset should match
// the leaf key
//
// TODO(roasbeef): this restrict to issuance
case assetSnapshot.OutPoint != key.MintingOutpoint:
return nil, fmt.Errorf("outpoint mismatch: expected %v, got %v",
key.MintingOutpoint, assetSnapshot.OutPoint)

// The script key should also match exactly.
case !newAsset.ScriptKey.PubKey.IsEqual(key.ScriptKey.PubKey):
return nil, fmt.Errorf("script key mismatch: expected %v, "+
Expand Down

0 comments on commit f4fa19b

Please sign in to comment.