nifty-oss / asset

A lightweight standard for non-fungible assets.
Apache License 2.0
38 stars 8 forks source link

Verify creator on create if signer #57

Closed joefitter closed 7 months ago

joefitter commented 7 months ago

If the creator is a signer, then they could be verified on creating the asset.

https://github.com/nifty-oss/asset/blob/252fbba136b6a6b213d606501a4ce37030a7fb25/programs/asset/types/src/extensions/creators.rs#L74

Currently if you create a new asset with a creator which is also the authority, it will remain unverified unless a separate verify instruction is called

febo commented 7 months ago

Good call, I prepared a PR to add this. It will also work on update, when you are adding the authority as a creator to an existing asset.