func NewAPIKey(perms []string, expiry time.Time, desc string) APIKeyType {
	return APIKeyType{
		ID:          GenerateKey("BMK-", 32),
		AddressHash: nil,
		Expires:     expiry,
		Permissions: perms,
		Admin:       false,
		Desc:        desc,
	}
}
// NewAPIKey creates a new key with the given permissions and duration
NewAPIKey creates a new key with the given permissions and duration
// NewAPIKey creates a new key with the given permissions and duration
func NewAPIKey(perms []string, expiry time.Time, desc string) APIKeyType {
	return APIKeyType{
		ID:          GenerateKey("BMK-", 32),
		AddressHash: nil,
		Expires:     expiry,
		Permissions: perms,
		Admin:       false,
		Desc:        desc,
	}
}
func NewAPIKey ( perms [ ] string , expiry time . Time , desc string ) APIKeyType { return APIKeyType { ID : GenerateKey ( " " , 32 ) , AddressHash : nil , Expires : expiry , Permissions : perms , Admin : false , Desc : desc , } }
NewAPIKey creates a new key with the given permissions and duration
NewAPIKey creates a new key with the given permissions and duration